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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    overflow: hidden;
}

header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    text-align: center;
    position: relative;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.dark-mode-toggle {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    width: 60px;
    height: 60px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.dark-mode-toggle:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.dark-mode-toggle .light-icon {
    display: none;
}

.dark-mode .dark-mode-toggle .dark-icon {
    display: none;
}

.dark-mode .dark-mode-toggle .light-icon {
    display: block;
}

header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
}

.subtitle {
    opacity: 0.9;
    font-size: 1.1em;
}

.tabs {
    display: flex;
    background: #f5f5f5;
    border-bottom: 2px solid #ddd;
}

.tab-btn {
    flex: 1;
    padding: 15px 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1em;
    font-weight: 600;
    color: #666;
    transition: all 0.3s;
}

.tab-btn:hover {
    background: #e0e0e0;
}

.tab-btn.active {
    background: white;
    color: #667eea;
    border-bottom: 3px solid #667eea;
}

.tab-content {
    display: none;
    padding: 30px;
}

.tab-content.active {
    display: block;
}

.tool-card {
    background: #f9f9f9;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 25px;
    border: 1px solid #e0e0e0;
}

.tool-card h2 {
    color: #667eea;
    margin-bottom: 20px;
    font-size: 1.5em;
}

.form-group {
    margin-bottom: 15px;
}

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

.form-group input[type="text"],
.form-group input[type="url"],
.form-group input[type="number"],
.form-group input[type="password"],
.form-group input[type="file"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 1em;
    font-family: inherit;
    margin-bottom: 10px;
}

.form-group input[type="checkbox"],
.form-group input[type="radio"] {
    margin-right: 5px;
    margin-left: 10px;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

button[type="submit"],
button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

button:active {
    transform: translateY(0);
}

.result {
    margin-top: 20px;
    padding: 20px;
    background: white;
    border-radius: 5px;
    border-left: 4px solid #667eea;
}

.result h3 {
    color: #667eea;
    margin-bottom: 10px;
}

.result h4 {
    margin-top: 15px;
    margin-bottom: 10px;
    color: #555;
}

.result code {
    display: block;
    background: #f5f5f5;
    padding: 15px;
    border-radius: 5px;
    font-family: 'Courier New', monospace;
    word-break: break-all;
    margin: 10px 0;
    border: 1px solid #ddd;
}

.result pre {
    background: #f5f5f5;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    border: 1px solid #ddd;
}

.result pre code {
    display: inline;
    padding: 0;
    background: transparent;
    border: none;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
}

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

table th {
    background: #667eea;
    color: white;
    font-weight: 600;
}

table tr:hover {
    background: #f5f5f5;
}

.success {
    color: #28a745;
    font-weight: 600;
}

.error {
    color: #dc3545;
    font-weight: 600;
}

.warning {
    color: #ffc107;
    font-weight: 600;
}

.info {
    color: #17a2b8;
}

.security-item {
    padding: 10px;
    margin: 10px 0;
    border-radius: 5px;
    border-left: 4px solid #ddd;
}

.security-item.good {
    background: #d4edda;
    border-left-color: #28a745;
}

.security-item.missing {
    background: #fff3cd;
    border-left-color: #ffc107;
}

.security-item.warning {
    background: #fff3cd;
    border-left-color: #ffc107;
}

.security-item.info {
    background: #d1ecf1;
    border-left-color: #17a2b8;
}

.disclaimer {
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 25px;
    color: #856404;
}

.warning {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 5px;
    padding: 10px;
    margin-bottom: 15px;
    color: #856404;
}

ul {
    margin-left: 20px;
    margin-top: 10px;
}

ul li {
    margin-bottom: 5px;
}

.critical {
    color: #dc3545;
    font-weight: bold;
}

.high {
    color: #fd7e14;
    font-weight: bold;
}

.medium {
    color: #ffc107;
}

.none {
    color: #28a745;
}

/* Dark Mode Styles */
body.dark-mode {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #e0e0e0;
}

body.dark-mode .container {
    background: #1e1e2e;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

body.dark-mode header {
    background: linear-gradient(135deg, #0f3460 0%, #16213e 100%);
}

body.dark-mode .tabs {
    background: #252538;
    border-bottom: 2px solid #3a3a4e;
}

body.dark-mode .tab-btn {
    color: #b0b0b0;
}

body.dark-mode .tab-btn:hover {
    background: #3a3a4e;
}

body.dark-mode .tab-btn.active {
    background: #1e1e2e;
    color: #667eea;
    border-bottom: 3px solid #667eea;
}

body.dark-mode .tool-card {
    background: #252538;
    border: 1px solid #3a3a4e;
}

body.dark-mode .tool-card h2 {
    color: #8b7cf6;
}

body.dark-mode .form-group input[type="text"],
body.dark-mode .form-group input[type="url"],
body.dark-mode .form-group input[type="number"],
body.dark-mode .form-group input[type="password"],
body.dark-mode .form-group input[type="file"],
body.dark-mode .form-group select,
body.dark-mode .form-group textarea {
    background: #1e1e2e;
    border: 2px solid #3a3a4e;
    color: #e0e0e0;
}

body.dark-mode .form-group input:focus,
body.dark-mode .form-group select:focus,
body.dark-mode .form-group textarea:focus {
    border-color: #667eea;
    outline: none;
}

body.dark-mode .result {
    background: #1e1e2e;
    border-left: 4px solid #667eea;
}

body.dark-mode .result h3 {
    color: #8b7cf6;
}

body.dark-mode .result h4 {
    color: #b0b0b0;
}

body.dark-mode .result code {
    background: #0f0f1e;
    border: 1px solid #3a3a4e;
    color: #a8e6cf;
}

body.dark-mode .result pre {
    background: #0f0f1e;
    border: 1px solid #3a3a4e;
}

body.dark-mode .result pre code {
    color: #a8e6cf;
}

body.dark-mode table th {
    background: #667eea;
    color: white;
}

body.dark-mode table td {
    border-bottom: 1px solid #3a3a4e;
}

body.dark-mode table tr:hover {
    background: #2a2a3e;
}

body.dark-mode .security-item {
    border-left-color: #3a3a4e;
}

body.dark-mode .security-item.good {
    background: #1a3a2a;
    border-left-color: #28a745;
    color: #90ee90;
}

body.dark-mode .security-item.missing {
    background: #3a3a1a;
    border-left-color: #ffc107;
    color: #ffd700;
}

body.dark-mode .security-item.warning {
    background: #3a3a1a;
    border-left-color: #ffc107;
    color: #ffd700;
}

body.dark-mode .security-item.info {
    background: #1a2a3a;
    border-left-color: #17a2b8;
    color: #87ceeb;
}

body.dark-mode .disclaimer {
    background: #3a3a1a;
    border: 2px solid #ffc107;
    color: #ffd700;
}

body.dark-mode .warning {
    background: #3a3a1a;
    border: 1px solid #ffc107;
    color: #ffd700;
}

body.dark-mode .success {
    color: #4ade80;
}

body.dark-mode .error {
    color: #f87171;
}

body.dark-mode .warning {
    color: #fbbf24;
}

body.dark-mode .info {
    color: #60a5fa;
}

body.dark-mode .critical {
    color: #f87171;
}

body.dark-mode .high {
    color: #fb923c;
}

body.dark-mode .medium {
    color: #fbbf24;
}

body.dark-mode .none {
    color: #4ade80;
}

/* Smooth transitions */
* {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

@media (max-width: 768px) {
    header h1 {
        font-size: 2em;
    }
    
    .header-content {
        flex-direction: column;
        gap: 20px;
    }
    
    .dark-mode-toggle {
        width: 50px;
        height: 50px;
        font-size: 1.2em;
    }
    
    .tabs {
        flex-direction: column;
    }
    
    .tab-content {
        padding: 20px;
    }
    
    .tool-card {
        padding: 15px;
    }
    
    table {
        font-size: 0.9em;
    }
    
    table th,
    table td {
        padding: 8px;
    }
}
