/* Modern Interface Styles */
body {
    background: linear-gradient(135deg, #000000 0%, #0b0b0b 60%, #1c1c1c 100%);
    min-height: 100vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #f5f5f5;
}

.text-muted {
    color: rgba(255, 255, 255, 0.6) !important;
}


.container {
    max-width: 800px;
    margin-top: 2rem;
}

.card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    backdrop-filter: blur(10px);
    background: rgba(22, 22, 26, 0.85);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #f5f5f5;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.6);
}

.card a,
.card .text-muted {
    color: rgba(255,255,255,0.75) !important;
}

.card-header {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
    border-radius: 15px 15px 0 0 !important;
    border: none;
    padding: 1.5rem;
}

.card-header h1, .card-header h2 {
    margin: 0;
    font-weight: 600;
}

.card-body {
    padding: 2rem;
}

.form-control {
    border-radius: 10px;
    border: 2px solid #e9ecef;
    padding: 0.75rem 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
    border-color: #4facfe;
    box-shadow: 0 0 0 0.2rem rgba(79, 172, 254, 0.25);
}

.btn {
    border-radius: 25px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.btn-outline-primary {
    border: 2px solid #667eea;
    color: #667eea;
    background: transparent;
}

.btn-outline-primary:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
}

.btn-outline-secondary {
    border: 2px solid #6c757d;
    color: #6c757d;
}

.btn-outline-secondary:hover {
    background: #6c757d;
    color: white;
    transform: translateY(-2px);
}

.list-group-item {
    border: none;
    border-radius: 10px;
    margin-bottom: 0.5rem;
    background: rgba(255, 255, 255, 0.08);
    transition: background 0.3s ease;
    color: #f5f5f5;
}

.list-group-item:hover {
    background: rgba(255, 255, 255, 0.12);
}

    .list-group-item .btn {
        min-width: 2.2rem;
        min-height: 2.2rem;
        padding: 0.35rem;
    }

    .list-group-item .badge {
        margin-left: 0.5rem;
    }


.text-muted {
    color: #6c757d !important;
}

.fs-5 {
    font-size: 1.25rem !important;
}

/* Gmail-style Email List */
.email-list {
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 8px;
    overflow: hidden;
    background: rgba(25, 25, 30, 0.75);
}

.email-item {
    background: rgba(0,0,0,0.35);
    transition: background-color 0.2s ease;
    color: #f5f5f5;
}

.email-item:hover {
    background-color: rgba(255,255,255,0.08);
}

.email-item a {
    color: #f5f5f5;
}

.email-item a:hover {
    color: #ffffff;
}

.email-item .form-check-input {
    margin-top: 0.5rem;
    background-color: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.35);
}

.email-item .form-check-input:checked {
    background-color: #4facfe;
    border-color: #4facfe;
}

.star {
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

.star:hover {
    background-color: rgba(0,0,0,0.1);
}

.sender {
    min-width: 200px;
}

.subject {
    min-width: 300px;
}

.date {
    min-width: 60px;
    text-align: right;
}

/* Inbox scroll layout */
.inbox-panel {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 4rem);
}

.inbox-content {
    flex: 1;
    overflow-y: auto;
    padding-right: 0.75rem;
}

.email-list {
    max-height: 100%;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .sender, .subject {
        min-width: auto;
    }
    
    .email-item {
        flex-wrap: wrap;
        padding: 0.75rem;
    }
    
    .date {
        text-align: left;
        margin-top: 0.25rem;
    }
}