/* Kayd Books Admin Panel Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #021945;
    --secondary-color: #FAB500;
    --text-color: #FFFFFF;
    --bg-color: #0a1929;
    --card-bg: #1a2332;
    --border-color: #2d3748;
    --success-color: #10b981;
    --error-color: #ef4444;
    --warning-color: #f59e0b;
    --info-color: #3b82f6;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Audio Details Section */
#audio-details-section {
    border-left: 3px solid var(--info-color);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(59, 130, 246, 0.05) 100%);
    animation: slideIn 0.3s ease-out;
}

#audio-details-section h3 {
    color: var(--info-color);
}

#audio-details-section small {
    display: block;
    margin-top: 0.25rem;
    color: #94a3b8;
    font-size: 0.875rem;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

/* Mobile Header */
.mobile-header {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background-color: var(--primary-color);
    z-index: 1100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.mobile-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
    height: 100%;
}

.mobile-header h2 {
    color: var(--secondary-color);
    font-size: 1.2rem;
    margin: 0;
}

/* Burger Menu Button */
.burger-menu {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1200;
}

.burger-menu span {
    width: 30px;
    height: 3px;
    background-color: var(--secondary-color);
    border-radius: 3px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.burger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translateY(8px);
}

.burger-menu.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}

.burger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translateY(-8px);
}

/* Sidebar Overlay */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
    display: block;
    opacity: 1;
}

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

/* Sidebar */
.sidebar {
    width: 280px;
    background-color: var(--primary-color);
    padding: 2rem 0 180px 0; /* Add bottom padding for footer */
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    transition: transform 0.3s ease;
    z-index: 1000;
}

.sidebar-header {
    padding: 0 2rem 2rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 2rem;
}

.sidebar-header h2 {
    color: var(--secondary-color);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.sidebar-header p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.nav-menu {
    list-style: none;
}

.nav-item {
    padding: 1rem 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-left: 3px solid transparent;
}

.nav-item:hover {
    background-color: rgba(250, 181, 0, 0.1);
    border-left-color: var(--secondary-color);
}

.nav-item.active {
    background-color: rgba(250, 181, 0, 0.2);
    border-left-color: var(--secondary-color);
    color: var(--secondary-color);
}

.nav-item i {
    font-size: 1.1rem;
    width: 20px;
}

/* Sidebar Footer */
.sidebar-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    background-color: rgba(0, 0, 0, 0.2);
    border-top: 1px solid var(--border-color);
}

.admin-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background-color: rgba(250, 181, 0, 0.1);
    border-radius: 8px;
    margin-bottom: 1rem;
}

.admin-info i {
    font-size: 1.5rem;
    color: var(--secondary-color);
}

.admin-info span {
    color: var(--text-color);
    font-size: 0.85rem;
    word-break: break-word;
}

.btn-logout {
    width: 100%;
    padding: 0.75rem 1rem;
    background-color: rgba(239, 68, 68, 0.1);
    border: 1px solid var(--error-color);
    border-radius: 8px;
    color: var(--error-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-logout:hover {
    background-color: var(--error-color);
    color: white;
    transform: translateY(-2px);
}

.btn-logout i {
    font-size: 1rem;
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 280px;
    padding: 2rem;
    background-color: var(--bg-color);
    min-height: 100vh;
}

.page {
    display: none;
}

.page.active {
    display: block;
}

.page-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.page-header h1 {
    color: var(--secondary-color);
    font-size: 2rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.page-header p {
    color: rgba(255, 255, 255, 0.7);
}

/* Forms */
.upload-form {
    max-width: 1200px;
}

.form-section {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
}

.form-section h3 {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-color);
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: var(--bg-color);
    color: var(--text-color);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(250, 181, 0, 0.1);
}

/* File Upload */
.upload-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.upload-item {
    text-align: center;
}

.upload-label {
    display: block;
    padding: 2rem;
    border: 2px dashed var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: var(--bg-color);
}

.upload-label:hover {
    border-color: var(--secondary-color);
    background-color: rgba(250, 181, 0, 0.05);
}

.upload-label i {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    display: block;
}

.upload-label span {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.upload-label input {
    display: none;
}

.upload-preview {
    margin-top: 1rem;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-color);
    border-radius: 8px;
    padding: 1rem;
}

.upload-preview img {
    max-width: 100%;
    max-height: 150px;
    border-radius: 8px;
}

.upload-preview .file-info {
    text-align: center;
    color: var(--secondary-color);
}

.upload-preview .file-info i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    display: block;
}

/* Progress */
.progress-section {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background-color: var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.progress-fill {
    height: 100%;
    background-color: var(--secondary-color);
    transition: width 0.3s ease;
    width: 0%;
}

.progress-text {
    text-align: center;
    color: var(--text-color);
    font-weight: 500;
}

/* Buttons */
.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
}

.btn-primary,
.btn-secondary {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.btn-primary:hover {
    background-color: #e6a500;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background-color: var(--border-color);
    color: var(--text-color);
}

.btn-secondary:hover {
    background-color: #4a5568;
}

.btn-danger {
    background-color: var(--error-color);
    color: white;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.btn-danger:hover {
    background-color: #dc2626;
}

.btn-edit {
    background-color: var(--warning-color);
    color: white;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    margin-right: 0.5rem;
}

.btn-edit:hover {
    background-color: #d97706;
}

/* Controls */
.controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    gap: 1rem;
}

.search-box {
    position: relative;
    flex: 1;
    max-width: 400px;
}

.search-box i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.5);
}

.search-box input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 3rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: var(--card-bg);
    color: var(--text-color);
    font-size: 1rem;
}

/* Table */
.table-container {
    background-color: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.books-table {
    width: 100%;
    border-collapse: collapse;
}

.books-table th,
.books-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.books-table th {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    font-weight: 600;
    position: sticky;
    top: 0;
}

.books-table tr:hover {
    background-color: rgba(250, 181, 0, 0.05);
}

.book-cover {
    width: 50px;
    height: 70px;
    object-fit: cover;
    border-radius: 4px;
}

.book-title {
    font-weight: 600;
    color: var(--secondary-color);
}

.book-author {
    color: rgba(255, 255, 255, 0.8);
}

.book-category {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    display: inline-block;
}

.book-date {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.book-actions {
    display: flex;
    gap: 0.5rem;
}

/* Loading and Empty States */
.loading,
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: rgba(255, 255, 255, 0.6);
}

.loading i,
.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
    color: var(--secondary-color);
}

.empty-state h3 {
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background-color: var(--card-bg);
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.modal-close:hover {
    background-color: var(--border-color);
}

.edit-form {
    padding: 1.5rem;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 1.5rem;
}

/* Notification */
.notification {
    position: fixed;
    top: 2rem;
    right: 2rem;
    background-color: var(--card-bg);
    border-radius: 8px;
    padding: 1rem 1.5rem;
    box-shadow: var(--shadow-lg);
    transform: translateX(400px);
    transition: transform 0.3s ease;
    z-index: 3000;
    border-left: 4px solid var(--success-color);
}

.notification.show {
    transform: translateX(0);
}

.notification.error {
    border-left-color: var(--error-color);
}

.notification.warning {
    border-left-color: var(--warning-color);
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.notification-icon {
    font-size: 1.2rem;
}

.notification.success .notification-icon {
    color: var(--success-color);
}

.notification.error .notification-icon {
    color: var(--error-color);
}

.notification.warning .notification-icon {
    color: var(--warning-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        width: 100%;
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
        padding: 1rem;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .upload-grid {
        grid-template-columns: 1fr;
    }

    .controls {
        flex-direction: column;
        align-items: stretch;
    }

    .search-box {
        max-width: none;
        margin-bottom: 1rem;
    }

    .table-container {
        overflow-x: auto;
    }

    .books-table {
        min-width: 600px;
    }

    .form-actions {
        flex-direction: column;
    }

    .modal-content {
        width: 95%;
        margin: 1rem;
    }

    .notification {
        top: 1rem;
        right: 1rem;
        left: 1rem;
        transform: translateY(-200px);
    }

    .notification.show {
        transform: translateY(0);
    }
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    /* Show mobile header */
    .mobile-header {
        display: block;
    }

    /* Hide sidebar by default on mobile */
    .sidebar {
        transform: translateX(-100%);
        top: 0;
        left: 0;
        width: 280px;
        height: 100vh;
        z-index: 1001;
    }

    /* Show sidebar when active */
    .sidebar.active {
        transform: translateX(0);
    }

    /* Adjust main content for mobile header */
    .main-content {
        margin-left: 0;
        padding: 1rem;
        padding-top: 80px; /* Account for fixed mobile header */
    }

    /* Adjust admin container */
    .admin-container {
        padding-top: 60px;
    }

    /* Form adjustments */
    .form-grid {
        grid-template-columns: 1fr;
    }

    .upload-grid {
        grid-template-columns: 1fr;
    }

    /* Table responsive */
    .table-container {
        overflow-x: auto;
    }

    .books-table {
        min-width: 600px;
    }

    /* Modal adjustments */
    .modal-content {
        width: 95%;
        margin: 1rem;
        max-height: calc(100vh - 2rem);
        overflow-y: auto;
    }

    /* Subscription page tablet adjustments */
    .subscription-tabs {
        gap: 0.75rem;
    }

    .tab-btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }

    .subscriptions-table {
        font-size: 0.9rem;
    }

    .subscriptions-table th,
    .subscriptions-table td {
        padding: 0.75rem 0.5rem;
    }

    .subscription-plan,
    .subscription-status {
        font-size: 0.8rem;
        padding: 0.3rem 0.6rem;
    }

    .subscription-amount {
        font-size: 1rem;
    }

    .btn-view {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
}

/* Medium mobile devices */
@media (max-width: 600px) {
    /* Force card layout on smaller screens */
    .subscriptions-table {
        display: block !important;
    }

    .subscriptions-table thead {
        display: none !important;
    }

    .subscriptions-table tbody {
        display: block !important;
    }

    .subscriptions-table tr {
        display: block !important;
        margin-bottom: 1rem;
        background-color: var(--card-bg);
        border-radius: 8px;
        padding: 1rem;
        border: 1px solid var(--border-color);
    }

    .subscriptions-table td {
        display: flex !important;
        justify-content: space-between;
        padding: 0.75rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .subscriptions-table td:last-child {
        border-bottom: none;
    }

    .subscriptions-table td::before {
        content: attr(data-label);
        font-weight: 700;
        color: var(--secondary-color);
        font-size: 0.75rem;
        text-transform: uppercase;
        min-width: 100px;
    }

    .table-container {
        overflow: visible !important;
    }

    .page-header h1 {
        font-size: 1.3rem;
    }

    .page-header p {
        font-size: 0.9rem;
    }

    /* Controls responsive */
    .controls {
        flex-direction: column;
        gap: 0.75rem;
    }

    .search-box {
        width: 100%;
    }

    .search-box input {
        width: 100%;
    }

    #refresh-subscriptions-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .page-header h1 {
        font-size: 1.5rem;
    }

    .form-section {
        padding: 1rem;
    }

    .upload-label {
        padding: 1.5rem;
    }

    .books-table th,
    .books-table td {
        padding: 0.75rem 0.5rem;
    }

    .book-actions {
        flex-direction: column;
    }

    .mobile-header h2 {
        font-size: 1rem;
    }

    .sidebar {
        width: 260px;
    }

    /* Subscription tabs mobile */
    .subscription-tabs {
        flex-direction: column;
        gap: 0.5rem;
    }

    .tab-btn {
        width: 100%;
        justify-content: space-between;
    }

    /* Subscription table mobile - card view */
    .subscriptions-table {
        display: block;
        overflow-x: visible !important;
    }

    .subscriptions-table thead {
        display: none !important;
    }

    .subscriptions-table tbody {
        display: block;
    }

    .subscriptions-table tr {
        display: block !important;
        margin-bottom: 1rem;
        background-color: var(--card-bg);
        border-radius: 8px;
        padding: 1rem;
        border: 1px solid var(--border-color);
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    }

    .subscriptions-table td {
        display: flex !important;
        justify-content: space-between;
        align-items: flex-start;
        padding: 0.75rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        text-align: left;
    }

    .subscriptions-table td:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    .subscriptions-table td::before {
        content: attr(data-label);
        font-weight: 700;
        color: var(--secondary-color);
        font-size: 0.75rem;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        min-width: 100px;
        flex-shrink: 0;
    }

    .subscription-user {
        text-align: right;
        flex: 1;
    }

    .subscription-email {
        font-size: 0.9rem;
        word-break: break-word;
    }

    .subscription-name {
        font-size: 0.8rem;
    }

    .subscription-plan {
        font-size: 0.8rem;
        padding: 0.3rem 0.6rem;
    }

    .payment-method {
        flex-direction: row;
        gap: 0.5rem;
        justify-content: flex-end;
        flex: 1;
    }

    .subscription-amount {
        font-size: 1.2rem;
    }

    .subscription-status {
        font-size: 0.75rem;
        padding: 0.3rem 0.6rem;
    }

    .subscription-actions {
        width: auto;
        justify-content: flex-end;
        flex: 1;
    }

    .btn-view {
        width: auto;
        padding: 0.5rem 1rem;
    }

    /* Hide table container overflow */
    .table-container {
        overflow: visible !important;
    }

    /* Subscription details modal mobile */
    .subscription-details {
        padding: 1rem 0;
    }

    .detail-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
        padding: 0.5rem 0;
    }

    .detail-value {
        text-align: left;
        font-size: 0.95rem;
    }

    .modal-actions {
        flex-direction: column;
        gap: 0.5rem;
    }

    .modal-actions button {
        width: 100%;
    }
}

/* Subscription Tabs */
.subscription-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.tab-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background-color: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    font-weight: 500;
}

.tab-btn:hover {
    border-color: var(--secondary-color);
    background-color: rgba(250, 181, 0, 0.1);
}

.tab-btn.active {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--primary-color);
}

.tab-btn .badge {
    background-color: rgba(255, 255, 255, 0.2);
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: bold;
}

.tab-btn.active .badge {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

/* Subscriptions Table */
.subscriptions-table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
}

.subscriptions-table thead {
    background-color: var(--primary-color);
}

.subscriptions-table th {
    padding: 1rem;
    text-align: left;
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.subscriptions-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.subscriptions-table tbody tr:hover {
    background-color: rgba(250, 181, 0, 0.05);
}

.subscription-user {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.subscription-email {
    font-weight: 600;
    color: var(--text-color);
}

.subscription-name {
    font-size: 0.85rem;
    color: #94a3b8;
}

.subscription-plan {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    background-color: var(--info-color);
    color: white;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
}

.payment-method {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.payment-method i {
    color: var(--secondary-color);
}

.subscription-amount {
    font-weight: 700;
    color: var(--success-color);
    font-size: 1.1rem;
}

.subscription-status {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-pending {
    background-color: var(--warning-color);
    color: white;
}

.status-approved {
    background-color: var(--success-color);
    color: white;
}

.status-rejected {
    background-color: var(--error-color);
    color: white;
}

.subscription-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-view {
    padding: 0.5rem 1rem;
    background-color: var(--info-color);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.btn-view:hover {
    background-color: #2563eb;
    transform: translateY(-2px);
}

.btn-success {
    padding: 0.75rem 1.5rem;
    background-color: var(--success-color);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-success:hover {
    background-color: #059669;
    transform: translateY(-2px);
}

/* Subscription Details Modal */
.subscription-details {
    padding: 1.5rem 0;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.detail-row.full-width {
    flex-direction: column;
    gap: 0.5rem;
}

.detail-label {
    font-weight: 600;
    color: #94a3b8;
    font-size: 0.9rem;
}

.detail-value {
    font-weight: 500;
    color: var(--text-color);
    text-align: right;
}

.detail-row.full-width .detail-value {
    text-align: left;
    line-height: 1.6;
}

/* Utility Classes */
.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

.mb-1 {
    margin-bottom: 0.5rem;
}

.mb-2 {
    margin-bottom: 1rem;
}

.mt-2 {
    margin-top: 1rem;
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.3s ease;
}

/* Edit Form Enhancements */
.form-section {
    margin: 1.5rem 0;
    padding: 1rem;
    background-color: rgba(250, 181, 0, 0.05);
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.form-section h3 {
    margin: 0 0 0.5rem 0;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.form-note {
    margin: 0 0 1rem 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    font-style: italic;
}

.form-group small {
    display: block;
    margin-top: 0.25rem;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
}

.form-group input[type="file"] {
    background-color: var(--input-bg);
    border: 2px dashed var(--border-color);
    border-radius: 6px;
    padding: 0.75rem;
    color: var(--text-color);
    transition: all 0.3s ease;
}

.form-group input[type="file"]:hover {
    border-color: var(--primary-color);
    background-color: rgba(250, 181, 0, 0.05);
}

.form-group input[type="file"]:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(250, 181, 0, 0.1);
}
