/* Modern Container Overrides for spacing */
.container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
}

/* Tabs Navigation */
.tabs-container {
    display: flex;
    gap: 0.5rem;
    border-bottom: 2px solid #e2e8f0;
    margin-bottom: 2rem;
    padding-bottom: 0px;
    overflow-x: auto;
    scrollbar-width: none; /* Hide scrollbar for Firefox */
}
.tabs-container::-webkit-scrollbar {
    display: none; /* Hide scrollbar for Chrome/Safari */
}
.tab-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 1rem 1.75rem;
    font-weight: 600;
    font-size: 1rem;
    color: #64748b;
    border-bottom: 3px solid transparent;
    transition: all 0.2s ease;
    white-space: nowrap;
    text-decoration: none !important;
}
.tab-link:hover {
    color: #2563eb;
    background: #f1f5f9;
}
.tab-link.active {
    color: #2563eb;
    border-bottom-color: #2563eb;
    background: rgba(37, 99, 235, 0.04);
}

/* Section Cards */
.manage-section {
    background: #ffffff;
    border-radius: 16px;
    padding: 2.25rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 10px 15px -3px rgba(0, 0, 0, 0.03);
    border: 1px solid #f1f5f9;
    transition: box-shadow 0.25s ease;
    width: 100%;
    box-sizing: border-box;
}

.manage-section:hover {
    box-shadow: 0 12px 24px -10px rgba(0, 0, 0, 0.08), 0 4px 12px -2px rgba(0, 0, 0, 0.03);
}

.manage-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
    margin-top: 0;
    margin-bottom: 1.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #f1f5f9;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Form Elements */
.add-form {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    border: 1px dashed #cbd5e1;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 0.75rem;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
    max-width: 600px;
}

@media (min-width: 640px) {
    .input-group {
        flex-direction: row;
        align-items: center;
    }
    .input-group input[type="text"] {
        margin-bottom: 0;
    }
}

.input-group input[type="text"],
.input-group input[type="email"] {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.2s;
    background: #fff;
    box-sizing: border-box;
    width: 100%;
}

.input-group input[type="text"]:focus,
.input-group input[type="email"]:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

/* Buttons */
.btn-add {
    background-color: #3b82f6;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-add:hover {
    background-color: #2563eb;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.25);
}

.btn-add:active {
    transform: scale(0.97);
}

.btn-delete {
    background-color: #fee2e2;
    color: #ef4444;
    border: 1px solid #fecaca;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-delete:hover {
    background-color: #ef4444;
    color: white;
    box-shadow: 0 4px 8px rgba(239, 68, 68, 0.2);
}

/* Data List */
.data-list h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1.25rem;
}

/* Responsive Data Item Layout */
.data-item {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    margin-bottom: 1rem;
    transition: all 0.2s ease;
    gap: 1.5rem;
    box-sizing: border-box;
    width: 100%;
}

.data-item:hover {
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.06);
    background: #f8fafc;
}

/* Status & Email Forms */
.status-form select {
    padding: 0.45rem 1.75rem 0.45rem 0.75rem;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background-color: #fff;
    color: #334155;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.6rem center;
    background-size: 0.9em;
    transition: border-color 0.2s;
    box-sizing: border-box;
    height: 34px;
}

.status-form select:focus {
    outline: none;
    border-color: #3b82f6;
}

.status-badge {
    padding: 0.35rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.025em;
    display: inline-flex;
    align-items: center;
}

.status-aktif {
    background-color: #dcfce7;
    color: #15803d;
}

.status-tidak-aktif {
    background-color: #f1f5f9;
    color: #475569;
}

.email-display {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: #475569;
    margin-top: 0.6rem;
    flex-wrap: wrap;
}

.email-display small {
    cursor: pointer;
    color: #2563eb;
    font-weight: 600;
    transition: all 0.2s;
}

.email-display small:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

.email-form {
    margin-top: 0.75rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    box-sizing: border-box;
    width: 100%;
}

.email-form input {
    flex: 1;
    padding: 0.5rem 0.75rem;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 0.9rem;
    box-sizing: border-box;
}

.email-form input:focus {
    outline: none;
    border-color: #3b82f6;
}

.email-form button {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s;
    box-sizing: border-box;
}

.email-form button[type="submit"] {
    background: #10b981;
    color: white;
}

.email-form button[type="submit"]:hover {
    background: #059669;
}

.email-form button[type="button"] {
    background: #e2e8f0;
    color: #475569;
}

.email-form button[type="button"]:hover {
    background: #cbd5e1;
}

/* Pagination Styles */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
    padding-top: 1.25rem;
    border-top: 1px solid #edf2f7;
    flex-wrap: wrap;
}

.page-link {
    padding: 0.5rem 1rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    color: #475569;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.page-link:hover {
    background-color: #f1f5f9;
    border-color: #94a3b8;
    color: #0f172a;
    text-decoration: none;
}

.page-link.active {
    background-color: #3b82f6;
    border-color: #3b82f6;
    color: white;
    font-weight: 600;
}

.page-link.disabled {
    color: #cbd5e1;
    border-color: #e2e8f0;
    pointer-events: none;
}

.edit-name-form {
    margin-top: 0.75rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px dashed #cbd5e1;
    box-sizing: border-box;
    width: 100%;
}

.edit-icon {
    cursor: pointer;
    color: #3b82f6;
    font-size: 0.95rem;
    margin-left: 0.5rem;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.edit-icon:hover {
    opacity: 1;
}

/* Responsive Mobile Layout for List Items */
@media (max-width: 768px) {
    .container {
        padding: 0 12px;
    }
    .manage-section {
        padding: 1.5rem 1.25rem;
        border-radius: 12px;
    }
    .data-item {
        flex-direction: column;
        align-items: stretch;
        padding: 1.25rem 1rem;
        gap: 1.25rem;
    }
    .data-item-actions {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.5rem;
        justify-content: space-between;
        align-items: center;
        border-top: 1px solid #f1f5f9;
        padding-top: 1rem;
        margin-top: 0.25rem;
        width: 100%;
    }
    .data-item-actions form.status-form {
        flex: 1;
    }
    .data-item-actions select {
        width: 100% !important;
    }
    .data-item-actions button, 
    .data-item-actions a {
        padding: 0.5rem 0.75rem !important;
        font-size: 0.8rem !important;
        height: 34px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    .email-form form, .edit-name-form form {
        flex-direction: column !important;
        gap: 0.75rem !important;
    }
    .email-form button, .edit-name-form button {
        width: 100% !important;
    }
}

/* Filter Pills for Tentor Status */
.tentor-status-filter {
    display: flex;
    gap: 8px;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}

.filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0.45rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    color: #475569;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.filter-pill:hover {
    background: #e2e8f0;
    color: #1e293b;
}

.filter-pill.active {
    background: #2563eb;
    color: #ffffff !important;
    border-color: #2563eb;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25);
}

.filter-pill.active i {
    color: #ffffff !important;
}

