/* ========================================
   ADMIN PANEL - PREMIUM DESIGN
   ======================================== */

/* Spinning animation for processing status */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.spin {
    animation: spin 1s linear infinite;
    display: inline-block;
}

/* Login Page */
.login-container {
    min-height: 100vh;
    background: linear-gradient(135deg, #00B894 0%, #F5576C 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    max-width: 450px;
    width: 100%;
}

.login-header {
    background: linear-gradient(135deg, #00B894 0%, #F5576C 100%);
    color: white;
    padding: 40px 30px;
    text-align: center;
}

.login-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 10px;
}

.login-body {
    padding: 40px 30px;
}

.form-floating label {
    color: #636E72;
}

.form-control:focus {
    border-color: #00B894;
    box-shadow: 0 0 0 0.25rem rgba(0, 184, 148, 0.25);
}

.btn-login {
    background: linear-gradient(135deg, #00B894 0%, #F5576C 100%);
    border: none;
    padding: 15px;
    font-weight: 600;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 184, 148, 0.4);
}

/* Admin Dashboard Layout */
.admin-wrapper {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 260px;
    background: #2D3436;
    color: white;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    transition: all 0.3s ease;
    z-index: 1000;
}

.admin-sidebar.collapsed {
    width: 70px;
}

.sidebar-header {
    padding: 25px 20px;
    background: linear-gradient(135deg, #00B894 0%, #F5576C 100%);
    text-align: center;
}

.sidebar-brand {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 800;
    color: white;
    text-decoration: none;
}

.sidebar-menu {
    padding: 20px 0;
}

.menu-item {
    padding: 15px 20px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.menu-item:hover,
.menu-item.active {
    background: rgba(0, 184, 148, 0.1);
    color: white;
    border-left-color: #00B894;
}

.menu-item i {
    font-size: 20px;
    width: 30px;
    margin-right: 15px;
}

.admin-content {
    margin-left: 260px;
    flex: 1;
    background: #F8F9FA;
    min-height: 100vh;
    transition: all 0.3s ease;
}

.admin-sidebar.collapsed+.admin-content {
    margin-left: 70px;
}

.admin-topbar {
    background: white;
    padding: 20px 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.topbar-title {
    font-size: 24px;
    font-weight: 700;
    color: #2D3436;
}

.admin-main {
    padding: 30px;
}

/* Stats Cards */
.stats-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border-left: 4px solid;
}

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

.stats-card.primary {
    border-left-color: #00B894;
}

.stats-card.success {
    border-left-color: #00B894;
}

.stats-card.warning {
    border-left-color: #FDCB6E;
}

.stats-card.danger {
    border-left-color: #FD79A8;
}

.stats-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: white;
}

.stats-icon.primary {
    background: linear-gradient(135deg, #00B894 0%, #F5576C 100%);
}

.stats-icon.success {
    background: linear-gradient(135deg, #00B894 0%, #00D2D3 100%);
}

.stats-icon.warning {
    background: linear-gradient(135deg, #FDCB6E 0%, #E17055 100%);
}

.stats-icon.danger {
    background: linear-gradient(135deg, #FD79A8 0%, #F5576C 100%);
}

/* Content Cards */
.content-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
}

.card-header-custom {
    padding: 20px 25px;
    border-bottom: 1px solid #e9ecef;
}

.card-body-custom {
    padding: 25px;
}

/* Table Styles */
.table-custom {
    margin-bottom: 0;
}

.table-custom thead {
    background: #F8F9FA;
}

.table-custom th {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
    color: #636E72;
    border: none;
    padding: 15px;
}

.table-custom td {
    padding: 15px;
    vertical-align: middle;
}

/* Buttons */
.btn-admin-primary {
    background: linear-gradient(135deg, #00B894 0%, #F5576C 100%);
    border: none;
    color: white;
    padding: 10px 25px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-admin-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 184, 148, 0.4);
    color: white;
}

/* Form Styles */
.form-label-custom {
    font-weight: 600;
    color: #2D3436;
    margin-bottom: 8px;
}

.form-control-custom {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 12px 15px;
    transition: all 0.3s ease;
}

.form-control-custom:focus {
    border-color: #00B894;
    box-shadow: 0 0 0 0.25rem rgba(0, 184, 148, 0.15);
}

/* Image Upload Preview */
.image-preview {
    width: 100%;
    max-width: 300px;
    height: 200px;
    border: 2px dashed #e9ecef;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.image-preview:hover {
    border-color: #00B894;
    background: rgba(0, 184, 148, 0.05);
}

.image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Responsive */
@media (max-width: 991px) {
    .admin-sidebar {
        margin-left: -260px;
    }

    .admin-sidebar.show {
        margin-left: 0;
    }

    .admin-content {
        margin-left: 0;
    }
}

@media (max-width: 576px) {
    .login-body {
        padding: 30px 20px;
    }

    .admin-topbar {
        padding: 15px 20px;
    }

    .admin-main {
        padding: 20px;
    }
}

/* Auth Pages */
.auth-body {
    min-height: 100vh;
    background: linear-gradient(135deg, #00B894 0%, #F5576C 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-container {
    width: 100%;
    max-width: 450px;
}

.auth-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.auth-header {
    background: linear-gradient(135deg, #00B894 0%, #F5576C 100%);
    color: white;
    padding: 40px 30px;
    text-align: center;
}

.auth-header i {
    font-size: 48px;
    margin-bottom: 15px;
}

.auth-header h3 {
    margin-bottom: 10px;
    font-weight: 700;
}

.auth-header p {
    margin: 0;
    opacity: 0.9;
}

.auth-form {
    padding: 40px 30px;
}

.auth-footer {
    padding: 20px 30px;
    text-align: center;
    border-top: 1px solid #e9ecef;
}

@media (max-width: 576px) {
    .auth-form {
        padding: 30px 20px;
    }
    .auth-header {
        padding: 30px 20px;
    }
}

