
:root {
    --primary-color: #4285F4;
    --secondary-color: #34A853;
    --accent-color: #EA4335;
    --light-color: #f8f9fa;
    --dark-color: #202124;
    --gray-color: #5f6368;
    --border-radius: 8px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #f5f7fa;
    color: var(--dark-color);
}

.navbar {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    background: white !important;
    padding: 0.5rem 0;
}

.navbar-brand {
    font-weight: 600;
    color: var(--primary-color) !important;
    font-size: 1.2rem;
    padding: 0.5rem 0; /* Spacing untuk brand */
}

.nav-link {
    font-weight: 500;
    color: var(--dark-color) !important;
    padding: 0.5rem 1rem !important; 
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

.main-container {
    margin-top: 80px;
}

/* Card Styles */
.card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    margin-bottom: 20px;
}

.card:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.card-header {
    background: white;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    font-weight: 600;
    font-size: 1.1rem;
    padding: 1.25rem 1.5rem;
    border-radius: var(--border-radius) var(--border-radius) 0 0 !important;
}

.card-body {
    padding: 1.5rem;
}

/* Email List Styles */
.email-list {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.email-item {
    padding: 16px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    transition: var(--transition);
    background: white;
}

.email-item:last-child {
    border-bottom: none;
}

.email-item:hover {
    background-color: #f8f9fa;
    cursor: pointer;
    transform: translateX(5px);
}

.email-item.unread {
    background-color: #f0f7ff;
    border-left: 3px solid var(--primary-color);
}

.email-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    margin-right: 16px;
    background: linear-gradient(135deg, var(--primary-color), #8ab4f8);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
}

.email-content {
    flex-grow: 1;
    min-width: 0;
}

.email-sender {
    font-weight: 600;
    color: var(--dark-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
}

.email-subject {
    font-weight: 500;
    color: var(--dark-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
}

.email-preview {
    color: var(--gray-color);
    font-size: 0.875rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.email-time {
    color: var(--gray-color);
    font-size: 0.75rem;
    white-space: nowrap;
    margin-left: 16px;
    text-align: right;
    min-width: 70px;
}

.email-labels {
    display: flex;
    margin-top: 6px;
}

.label {
    font-size: 0.7rem;
    padding: 3px 8px;
    border-radius: 12px;
    margin-right: 6px;
    font-weight: 500;
}

.label-primary {
    background-color: #e3f2fd;
    color: var(--primary-color);
}

.label-success {
    background-color: #e8f5e9;
    color: var(--secondary-color);
}

.label-danger {
    background-color: #ffebee;
    color: var(--accent-color);
}

/* Sidebar Styles */
.sidebar-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 20px;
    margin-bottom: 20px;
    transition: var(--transition);
}

.sidebar-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.sidebar-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--dark-color);
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
}

.sidebar-title i {
    margin-right: 10px;
    color: var(--primary-color);
}

/* Buttons */
.btn {
    border-radius: var(--border-radius);
    font-weight: 500;
    padding: 0.5rem 1.25rem;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #3367d6;
    border-color: #3367d6;
    transform: translateY(-2px);
}

.btn-block {
    display: block;
    width: 100%;
}

/* Pagination */
.pagination {
    justify-content: center;
}

.page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.page-link {
    color: var(--primary-color);
    border-radius: var(--border-radius) !important;
    margin: 0 3px;
    border: none;
    box-shadow: none;
}

/* Info Box */
.info-box {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 20px;
    margin-bottom: 20px;
}

.info-box h4 {
    color: var(--primary-color);
    font-weight: 600;
    display: flex;
    align-items: center;
}

.info-box h4 i {
    margin-right: 10px;
}
@media (max-width: 992px) {
    .navbar-collapse {
        padding: 1rem 0; /* Spacing untuk menu mobile */
    }
    
    .nav-item {
        margin: 0.25rem 0; /* Spacing antar item di mobile */
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .email-item {
        padding: 12px 15px;
    }
    
    .email-avatar {
        width: 36px;
        height: 36px;
        margin-right: 12px;
    }
}

/* Floating action button */
.fab {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(66, 133, 244, 0.3);
    z-index: 1000;
    transition: var(--transition);
}

.fab:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(66, 133, 244, 0.4);
    color: white;
}

/* Modern badge */
.badge-modern {
    border-radius: 12px;
    padding: 4px 10px;
    font-weight: 500;
    font-size: 0.75rem;
}