* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    color: white;
    margin-bottom: 40px;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.verification-form {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.verification-form h2 {
    color: #333;
    margin-bottom: 20px;
    text-align: center;
}

.input-group {
    display: flex;
    gap: 10px;
}

#urlInput {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #e1e5e9;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s;
}

#urlInput:focus {
    outline: none;
    border-color: #667eea;
}

#verifyBtn {
    padding: 12px 25px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
}

#verifyBtn:hover {
    background: #5a6fd8;
}

#verifyBtn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.results {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.results h3 {
    color: #333;
    margin-bottom: 20px;
    text-align: center;
}

.result-card {
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.result-status {
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 14px;
}

.status-safe {
    background: #d4edda;
    color: #155724;
}

.status-phishing {
    background: #f8d7da;
    color: #721c24;
}

.confidence-bar {
    background: #e9ecef;
    border-radius: 10px;
    height: 20px;
    margin: 10px 0;
    overflow: hidden;
}

.confidence-fill {
    height: 100%;
    border-radius: 10px;
    transition: width 0.5s ease;
}

.confidence-fill.safe {
    background: #28a745;
}

.confidence-fill.phishing {
    background: #dc3545;
}

.analysis-section {
    margin: 15px 0;
}

.analysis-section h4 {
    color: #495057;
    margin-bottom: 10px;
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 5px;
}

.analysis-details {
    background: #f8f9fa;
    padding: 10px;
    border-radius: 5px;
    font-family: monospace;
    font-size: 14px;
    white-space: pre-wrap;
}

.explanation {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 5px;
    padding: 15px;
    margin-top: 15px;
}

.explanation h4 {
    color: #856404;
    margin-bottom: 10px;
}

/* Dashboard Styles */
.dashboard-stats {
    display: flex;
    gap: 20px;
    margin: 20px 0;
}

.stat-card {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    flex: 1;
    text-align: center;
}

.stat-card h4 {
    margin-top: 0;
    color: #495057;
}

.stat-card p {
    font-size: 2rem;
    font-weight: bold;
    margin: 10px 0 0;
    color: #667eea;
}

.moderation-actions {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
}

.moderation-actions button {
    margin-right: 10px;
    margin-bottom: 10px;
}

.btn-danger {
    background: #dc3545 !important;
    color: white !important;
}

.btn-danger:hover {
    background: #c82333 !important;
}

/* Navigation */
nav ul {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

nav li {
    margin: 0;
}

nav a {
    display: block;
    padding: 15px 20px;
    text-decoration: none;
    color: #495057;
    transition: all 0.3s;
    border-bottom: 3px solid transparent;
}

nav a:hover,
nav a.active {
    color: #667eea;
    border-bottom: 3px solid #667eea;
}

#auth-section {
    margin-left: auto;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn-google {
    background: #4285f4;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.btn-google:hover {
    background: #3367d6;
}

.btn-logout {
    background: #6c757d;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.btn-logout:hover {
    background: #5a6268;
}

#user-info {
    font-weight: bold;
    color: #495057;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #495057;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 16px;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

button[type="submit"] {
    background: #667eea;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

button[type="submit"]:hover {
    background: #5a6fd8;
}

/* Page Styles */
.page {
    display: none;
}

.page.active {
    display: block;
}

.small {
    font-size: 0.875em;
    color: #6c757d;
}

.loading {
    text-align: center;
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.hidden {
    display: none;
}

footer {
    text-align: center;
    color: white;
    margin-top: 40px;
    opacity: 0.8;
}

@media (max-width: 600px) {
    .container {
        padding: 10px;
    }

    header h1 {
        font-size: 2rem;
    }

    .input-group {
        flex-direction: column;
    }

    #verifyBtn {
        width: 100%;
    }

    .dashboard-stats {
        flex-direction: column;
    }

    nav ul {
        flex-direction: column;
    }

    #auth-section {
        margin-left: 0;
        justify-content: center;
    }
}
