:root {
    --primary-color: #007bff;
    --danger-color: #dc3545;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --dark-color: #343a40;
    --light-color: #f8f9fa;
}

body {
    background-color: #f5f5f5;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: hidden;
}

/* Navigation */
.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

.navbar-brand i {
    margin-right: 0.5rem;
}

/* Cards */
.card {
    border: none;
    border-radius: 10px;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15) !important;
}

.card-header {
    border-radius: 10px 10px 0 0 !important;
    border-bottom: none;
    padding: 1rem 1.5rem;
}

.card-body {
    padding: 1.5rem;
}

/* Forms */
.form-control {
    border-radius: 8px;
    border: 2px solid #e9ecef;
    padding: 0.75rem 1rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.btn {
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    transition: all 0.15s ease-in-out;
}

.btn:hover {
    transform: translateY(-1px);
}

/* Results */
.breach-item {
    border-left: 4px solid var(--danger-color);
    background-color: #fff;
    border-radius: 0 8px 8px 0;
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: box-shadow 0.2s ease-in-out;
}

.breach-item:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.breach-item.safe {
    border-left-color: var(--success-color);
}

.breach-date {
    font-size: 0.9rem;
    color: #6c757d;
}

.breach-count {
    font-weight: bold;
    color: var(--danger-color);
}

.paste-item {
    border-left: 4px solid var(--warning-color);
    background-color: #fff;
    border-radius: 0 8px 8px 0;
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Password Results */
.password-safe {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
}

.password-pwned {
    background: linear-gradient(135deg, #dc3545, #e74c3c);
    color: white;
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
}

.password-error {
    background: linear-gradient(135deg, #ffc107, #fd7e14);
    color: white;
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
}

/* Loading Animations */
.spinner-border {
    width: 2rem;
    height: 2rem;
}

/* Breach Modal */
.breach-list-item {
    border-bottom: 1px solid #e9ecef;
    padding: 1rem 0;
}

.breach-list-item:last-child {
    border-bottom: none;
}

.breach-name {
    font-weight: bold;
    color: var(--primary-color);
}

.breach-description {
    font-size: 0.9rem;
    color: #6c757d;
    margin-top: 0.5rem;
}

/* Alerts */
.alert {
    border-radius: 10px;
    border: none;
}

.alert-warning {
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    border-left: 4px solid var(--warning-color);
}

.alert-danger {
    background: linear-gradient(135deg, #f8d7da, #fab1a0);
    border-left: 4px solid var(--danger-color);
}

.alert-success {
    background: linear-gradient(135deg, #d4edda, #a8e6cf);
    border-left: 4px solid var(--success-color);
}

/* Footer */
footer {
    margin-top: auto;
}

footer a {
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .display-4 {
        font-size: 2rem;
    }
    .card-body {
        padding: 1rem;
    }
    .btn {
        padding: 0.5rem 1rem;
    }
}

/* Additional Mobile Enhancements */
@media (max-width: 576px) {
    .input-group,
    .input-group.flex-column,
    form .input-group {
        flex-direction: column !important;
        align-items: stretch;
        border-radius: 12px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.07);
        padding: 0.5rem 0.25rem;
    }
    .input-group > .form-control,
    .input-group > .btn {
        width: 100%;
        border-radius: 10px !important;
        margin-bottom: 0.5rem;
        font-size: 1rem;
        padding: 0.75rem 1rem;
    }
    .input-group > .btn {
        margin-bottom: 0;
    }
    .card-body {
        padding: 0.75rem;
    }
    .card-header {
        padding: 0.75rem 1rem;
    }
    .display-4, .hero-title, h1, h2 {
        font-size: 1.4rem !important;
    }
    .stat-number {
        font-size: 1.5rem;
    }
    .stat-card, .breach-detail-card {
        padding: 1rem;
        border-radius: 10px;
    }
    .modal-content, .modal-body {
        padding: 0.5rem !important;
    }
    #email-results .card {
        margin-bottom: 1rem;
    }
    .security-icon {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }
    .data-class-badge {
        font-size: 0.7rem;
        padding: 0.2rem 0.4rem;
    }
}

/* Custom Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.5s ease-out;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 123, 255, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(0, 123, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 123, 255, 0);
    }
}

.pulse {
    animation: pulse 2s infinite;
}

/* Security Icons */
.security-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.security-icon.safe {
    color: var(--success-color);
}

.security-icon.danger {
    color: var(--danger-color);
}

.security-icon.warning {
    color: var(--warning-color);
}

/* Data Classes */
.data-class-badge {
    background-color: var(--info-color);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    margin: 0.2rem;
    display: inline-block;
}

/* Breach Details */
.breach-detail-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 1rem;
}

.breach-detail-card h5 {
    color: white;
    margin-bottom: 1rem;
}

.breach-detail-card .badge {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
}

/* Statistics */
.stat-card {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
}
