* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    padding: 20px;
    background-color: #f5f5f5;
    color: #333;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

h1 {
    margin-bottom: 30px;
    color: #333;
    border-bottom: 2px solid #4CAF50;
    padding-bottom: 10px;
}

h2 {
    margin-top: 20px;
    margin-bottom: 15px;
    color: #555;
    font-size: 1.3em;
}

h3 {
    margin-top: 15px;
    margin-bottom: 10px;
    color: #666;
    font-size: 1.1em;
}

.form-section {
    margin-bottom: 30px;
}

.input-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #555;
}

input[type="text"],
input[type="file"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

input[type="text"]:focus,
input[type="file"]:focus {
    outline: none;
    border-color: #4CAF50;
}

small {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 12px;
}

button {
    background-color: #4CAF50;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: background-color 0.3s;
    margin-right: 10px;
}

button:hover {
    background-color: #45a049;
}

button:active {
    background-color: #3d8b40;
}

#detailed-btn {
    background-color: #2196F3;
}

#detailed-btn:hover {
    background-color: #1976D2;
}

#detailed-btn:active {
    background-color: #1565C0;
}

.result-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
}

#status {
    margin-bottom: 15px;
    padding: 10px;
    background-color: #e3f2fd;
    border-left: 4px solid #2196F3;
    border-radius: 4px;
}

#flags-found ul {
    list-style: none;
    padding: 0;
}

#flags-found li {
    margin: 10px 0;
    padding: 10px;
    background-color: #e8f5e9;
    border-left: 4px solid #4CAF50;
    border-radius: 4px;
}

#flags-found code {
    font-family: 'Courier New', monospace;
    font-size: 14px;
    color: #2e7d32;
    font-weight: bold;
}

#packet-info ul {
    list-style: none;
    padding: 0;
}

#packet-info li {
    margin: 8px 0;
    padding: 8px;
    background-color: #f5f5f5;
    border-radius: 4px;
}

#flags-found p {
    color: #666;
    font-style: italic;
}

#detailed-status {
    margin-bottom: 15px;
    padding: 10px;
    background-color: #e3f2fd;
    border-left: 4px solid #2196F3;
    border-radius: 4px;
}

#detailed-content {
    margin-top: 20px;
}

.packet-details {
    margin: 15px 0;
    padding: 15px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.packet-details h4 {
    margin-bottom: 10px;
    color: #2196F3;
}

.detail-section {
    margin: 10px 0;
    padding: 10px;
    background-color: white;
    border-left: 3px solid #4CAF50;
    border-radius: 4px;
}

.detail-section h5 {
    margin-bottom: 5px;
    color: #555;
    font-size: 0.9em;
}

.detail-section pre {
    margin: 5px 0 0 0;
    padding: 8px;
    background-color: #f5f5f5;
    border-radius: 4px;
    overflow-x: auto;
    font-size: 12px;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.protocol-tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: bold;
    margin-right: 5px;
}

.protocol-tcp { background-color: #E3F2FD; color: #1976D2; }
.protocol-udp { background-color: #FFF3E0; color: #E65100; }
.protocol-http { background-color: #E8F5E9; color: #2E7D32; }
.protocol-dns { background-color: #F3E5F5; color: #7B1FA2; }
.protocol-https { background-color: #E1F5FE; color: #0277BD; }
.protocol-ftp { background-color: #FFF9C4; color: #F57F17; }
.protocol-smtp { background-color: #FCE4EC; color: #C2185B; }
.protocol-icmp { background-color: #FFEBEE; color: #C62828; }

.tcp-stream {
    margin: 10px 0;
    padding: 10px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    margin: 15px 0;
}

.stat-item {
    padding: 10px;
    background-color: #f5f5f5;
    border-radius: 4px;
    text-align: center;
}

.stat-item .stat-value {
    font-size: 1.5em;
    font-weight: bold;
    color: #2196F3;
}

.stat-item .stat-label {
    font-size: 0.9em;
    color: #666;
    margin-top: 5px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 10px 0;
    font-size: 14px;
}

table th, table td {
    padding: 8px;
    text-align: left;
    border: 1px solid #ddd;
}

table th {
    background-color: #f5f5f5;
    font-weight: 600;
}

table tr:hover {
    background-color: #f9f9f9;
}

