/* ============================================
   ADMIN PROFESSIONAL THEME
   Modern, Clean & Beautiful Design
   ============================================ */

/* === VARIABLES & COLORS === */
:root {
    --primary-color: #007bff;
    --primary-gradient: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    --success-gradient: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
    --warning-gradient: linear-gradient(135deg, #ffc107 0%, #e0a800 100%);
    --info-gradient: linear-gradient(135deg, #17a2b8 0%, #117a8b 100%);
    --danger-gradient: linear-gradient(135deg, #dc3545 0%, #bd2130 100%);
    --dark-gradient: linear-gradient(135deg, #343a40 0%, #23272b 100%);
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --card-shadow-hover: 0 15px 40px rgba(0, 0, 0, 0.12);
}

/* === GLOBAL STYLES === */
body {
    background: #f8f9fa;
    font-family: 'Poppins', sans-serif;
}

/* === CARDS === */
.admin-card {
    background: white;
    border: none;
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.admin-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-shadow-hover);
}

.admin-card .card-header {
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 1.5rem;
    font-weight: 600;
    border-radius: 20px 20px 0 0;
}

.admin-card .card-body {
    padding: 2rem;
}

/* === SETUP STEPS === */
.setup-step-card {
    background: white;
    border-radius: 18px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
}

.setup-step-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.setup-step-card.step-1 {
    border-top: 4px solid #007bff;
}

.setup-step-card.step-1:hover {
    border-color: #007bff;
}

.setup-step-card.step-2 {
    border-top: 4px solid #ffc107;
}

.setup-step-card.step-2:hover {
    border-color: #ffc107;
}

.setup-step-card.step-3 {
    border-top: 4px solid #28a745;
}

.setup-step-card.step-3:hover {
    border-color: #28a745;
}

.setup-step-card.step-4 {
    border-top: 4px solid #17a2b8;
}

.setup-step-card.step-4:hover {
    border-color: #17a2b8;
}

.step-number {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    position: relative;
}

.step-number.step-1 {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
}

.step-number.step-2 {
    background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%);
}

.step-number.step-3 {
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
}

.step-number.step-4 {
    background: linear-gradient(135deg, #17a2b8 0%, #117a8b 100%);
}

.step-number::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: inherit;
    opacity: 0.3;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.2);
        opacity: 0;
    }
}

/* === BUTTONS === */
.btn {
    border-radius: 12px;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.btn-primary {
    background: var(--primary-gradient);
}

.btn-success {
    background: var(--success-gradient);
}

.btn-warning {
    background: var(--warning-gradient);
}

.btn-info {
    background: var(--info-gradient);
}

.btn-danger {
    background: var(--danger-gradient);
}

.btn-dark {
    background: var(--dark-gradient);
}

/* === MOBILE ACTION BUTTONS === */
.mobile-action-btn {
    border-radius: 15px;
    padding: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    background: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.mobile-action-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.mobile-action-btn.btn-primary {
    background: var(--primary-gradient);
    color: white;
}

.mobile-action-btn.btn-success {
    background: var(--success-gradient);
    color: white;
}

.mobile-action-btn.btn-warning {
    background: var(--warning-gradient);
    color: white;
}

.mobile-action-btn.btn-info {
    background: var(--info-gradient);
    color: white;
}

/* === STAT CARDS === */
.mobile-stat-card {
    background: white;
    border-radius: 18px;
    padding: 1.5rem;
    text-align: center;
    border: none;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.mobile-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
}

.mobile-stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

/* === BADGES === */
.badge {
    border-radius: 8px;
    padding: 0.5em 1em;
    font-weight: 600;
    font-size: 0.85rem;
}

.badge.bg-primary {
    background: var(--primary-gradient) !important;
}

.badge.bg-success {
    background: var(--success-gradient) !important;
}

.badge.bg-warning {
    background: var(--warning-gradient) !important;
}

.badge.bg-info {
    background: var(--info-gradient) !important;
}

.badge.bg-danger {
    background: var(--danger-gradient) !important;
}

/* === TABLES === */
.table {
    border-radius: 15px;
    overflow: hidden;
}

.table thead {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
}

.table thead th {
    border: none;
    padding: 1.2rem 1rem;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.table tbody tr {
    transition: all 0.3s ease;
}

.table tbody tr:hover {
    background: rgba(0, 123, 255, 0.05);
    transform: scale(1.01);
}

.table tbody td {
    padding: 1.2rem 1rem;
    vertical-align: middle;
    border-bottom: 1px solid #f0f0f0;
}

/* === FORMS === */
.form-control,
.form-select {
    border-radius: 12px;
    border: 2px solid #e8e8e8;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.form-control:focus,
.form-select:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.15);
}

.form-label {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

/* === ALERTS === */
.alert {
    border-radius: 15px;
    border: none;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.alert-success {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.1) 0%, rgba(30, 126, 52, 0.1) 100%);
    color: #28a745;
    border-left: 4px solid #28a745;
}

.alert-danger {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.1) 0%, rgba(189, 33, 48, 0.1) 100%);
    color: #dc3545;
    border-left: 4px solid #dc3545;
}

.alert-warning {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.1) 0%, rgba(224, 168, 0, 0.1) 100%);
    color: #ffc107;
    border-left: 4px solid #ffc107;
}

.alert-info {
    background: linear-gradient(135deg, rgba(23, 162, 184, 0.1) 0%, rgba(17, 122, 139, 0.1) 100%);
    color: #17a2b8;
    border-left: 4px solid #17a2b8;
}

/* === SIDEBAR === */
.offcanvas {
    border-radius: 0 20px 20px 0;
}

.offcanvas-header {
    background: var(--primary-gradient);
    color: white;
    padding: 2rem;
}

.list-group-item {
    border: none;
    padding: 1rem 1.5rem;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.list-group-item:hover {
    background: linear-gradient(90deg, rgba(0, 123, 255, 0.08) 0%, transparent 100%);
    border-left-color: #007bff;
    transform: translateX(5px);
}

/* === ICONS === */
.rounded-circle {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* === ANIMATIONS === */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.admin-card {
    animation: fadeInUp 0.5s ease-out;
}

/* === MODALS === */
.modal-content {
    border-radius: 20px;
    border: none;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.modal-header {
    background: var(--primary-gradient);
    color: white;
    border-radius: 20px 20px 0 0;
    border: none;
    padding: 1.5rem 2rem;
}

.modal-body {
    padding: 2rem;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .admin-card .card-body {
        padding: 1.25rem;
    }
    
    .btn {
        padding: 0.65rem 1.25rem;
        font-size: 0.9rem;
    }
    
    .mobile-action-btn {
        padding: 0.85rem;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}

/* === SCROLLBAR === */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-gradient);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #0056b3 0%, #007bff 100%);
}
