﻿
/* Google Fonts */
@@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700;800&display=swap');

body {
    font-family: 'Cairo', sans-serif;
    background-color: #f8fafc;
}

/* Admin Page Header */
.admin-header {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border-radius: 20px;
    padding: 40px 50px;
    color: white;
    margin-bottom: 40px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.15);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: hidden;
}

    .admin-header::before {
        content: '\f207'; /* Bus Icon */
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        position: absolute;
        left: -10px;
        bottom: -20px;
        font-size: 8rem;
        opacity: 0.05;
        transform: rotate(-15deg);
    }

    .admin-header h1 {
        font-weight: 800;
        font-size: 2.2rem;
        margin-bottom: 0.5rem;
    }

    .admin-header p {
        font-size: 1rem;
        opacity: 0.8;
        margin: 0;
    }

.btn-create-trip {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 12px 25px;
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.25);
    transition: all 0.3s;
}

    .btn-create-trip:hover {
        transform: translateY(-2px);
        box-shadow: 0 12px 25px rgba(16, 185, 129, 0.35);
        color: white;
    }

/* Data Table Card */
.admin-card {
    background: white;
    border-radius: 20px;
    padding: 1rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.02);
    border: 1px solid rgba(0,0,0,0.04);
}

.table-admin {
    margin: 0;
    border-collapse: separate;
    border-spacing: 0 8px;
}

    .table-admin thead th {
        border-bottom: none;
        color: #475569;
        font-weight: 700;
        font-size: 0.9rem;
        padding: 1rem;
        background: #f8fafc;
    }

        .table-admin thead th:first-child {
            border-top-right-radius: 12px;
            border-bottom-right-radius: 12px;
        }

        .table-admin thead th:last-child {
            border-top-left-radius: 12px;
            border-bottom-left-radius: 12px;
        }

    .table-admin tbody tr {
        transition: all 0.2s ease;
        background: white;
    }

        .table-admin tbody tr:hover {
            transform: translateY(-1px);
            box-shadow: 0 5px 15px rgba(0,0,0,0.03);
            background: #fdfdfd;
        }

    .table-admin tbody td {
        padding: 1.2rem 1rem;
        border-top: 1px solid #f1f5f9;
        border-bottom: 1px solid #f1f5f9;
        vertical-align: middle;
        color: #334155;
        font-size: 0.95rem;
    }

        .table-admin tbody td:first-child {
            border-inline-start: 1px solid #f1f5f9;
            border-top-right-radius: 12px;
            border-bottom-right-radius: 12px;
            font-weight: 700;
            color: #94a3b8;
        }

        .table-admin tbody td:last-child {
            border-inline-end: 1px solid #f1f5f9;
            border-top-left-radius: 12px;
            border-bottom-left-radius: 12px;
        }

/* Route styling in Admin */
.admin-route {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
}

    .admin-route i {
        color: #cbd5e1;
        font-size: 0.8rem;
    }

/* Tags */
.tag-price {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    padding: 6px 12px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9rem;
}

.tag-seats {
    background: rgba(31, 107, 74, 0.1);
    color: #1f6b4a;
    padding: 6px 12px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9rem;
}

.asset-info {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #64748b;
    font-size: 0.85rem;
}

    .asset-info i {
        color: #94a3b8;
    }

/* Action Buttons */
.btn-admin-action {
    width: 35px;
    height: 35px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    border: none;
    color: white;
    margin-inline-end: 4px;
    font-size: 0.9rem;
}

.btn-admin-edit {
    background: #1f6b4a;
}

    .btn-admin-edit:hover {
        background: #164f37;
        transform: translateY(-2px);
        box-shadow: 0 4px 10px rgba(31, 107, 74, 0.3);
    }

.btn-admin-seats {
    background: #8b5cf6;
}

    .btn-admin-seats:hover {
        background: #7c3aed;
        transform: translateY(-2px);
        box-shadow: 0 4px 10px rgba(139, 92, 246, 0.3);
    }

.btn-admin-delete {
    background: #ef4444;
}

    .btn-admin-delete:hover {
        background: #dc2626;
        transform: translateY(-2px);
        box-shadow: 0 4px 10px rgba(239, 68, 68, 0.3);
    }

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

    .empty-state i {
        font-size: 4rem;
        color: #e2e8f0;
        margin-bottom: 20px;
    }

@@media (max-width: 768px) {
    .admin-header {
        flex-direction: column;
        text-align: center;
        gap: 20px;
        padding: 30px 20px;
    }

    .btn-create-trip {
        width: 100%;
    }

    .table-admin {
        min-width: 1000px;
    }
}




