/* Main Styles for FindaFestival Admin Dashboard */
@import url('variables.css');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    color: var(--black);
    background-color: var(--gray-light);
    line-height: 1.6;
}

/* Navigation Bar */
.navbar-custom {
    background-color: var(--primary-dark);
    box-shadow: var(--shadow-md);
}

.navbar-brand {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--primary-orange) !important;
}

.navbar-nav .nav-link {
    color: var(--gray-medium) !important;
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: color var(--transition-fast);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--white) !important;
}

.navbar-nav .nav-link.active {
    border-bottom: 2px solid var(--primary-orange);
}

/* Buttons */
.btn-primary-custom {
    background-color: var(--primary-green);
    border-color: var(--primary-green);
    color: var(--white);
    font-weight: 500;
    padding: 0.5rem 1.5rem;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.btn-primary-custom:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    color: var(--primary-orange);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-highlight {
    background-color: var(--primary-orange);
    border-color: var(--primary-orange);
    color: var(--white);
    font-weight: 600;
    transition: all var(--transition-fast);
}

.btn-highlight:hover {
    background-color: var(--primary-gold);
    border-color: var(--primary-gold);
    color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Warning button with custom hover effect */
.btn-warning {
    background-color: var(--status-draft);
    border-color: var(--status-draft);
    color: var(--white);
    font-weight: 600;
    transition: all var(--transition-fast);
}

.btn-warning:hover {
    background-color: #FF9800;
    border-color: #FF9800;
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-danger-custom {
    background-color: var(--danger);
    border-color: var(--danger);
    color: var(--white);
}

.btn-danger-custom:hover {
    background-color: #dc2626;
    border-color: #dc2626;
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* Cards */
.card-custom {
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition-fast);
}

.card-custom:hover {
    box-shadow: var(--shadow-md);
}

.card-header-custom {
    background-color: var(--white);
    border-bottom: 2px solid var(--primary-accent);
    font-weight: 600;
    color: var(--primary-dark);
    padding: 1rem 1.5rem;
}

/* Tables */
.table-custom {
    background-color: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.table-custom thead {
    background-color: var(--primary-dark);
    color: var(--white);
}

.table-custom tbody tr:hover {
    background-color: rgba(107, 142, 124, 0.1);
    cursor: pointer;
}

.table-custom td, .table-custom th {
    padding: 1rem;
    vertical-align: middle;
}

/* Event name cell - allow wrapping */
.event-name-cell {
    max-width: 200px;
    word-wrap: break-word;
    word-break: break-word;
    white-space: normal;
    line-height: 1.5;
}

/* Prevent wrapping for date columns */
.nowrap {
    white-space: nowrap;
}

/* Actions cell - keep icons on same line */
.actions-cell {
    white-space: nowrap;
}

/* Status Badges */
.badge-draft {
    background-color: var(--status-draft);
    color: var(--white);
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius-pill);
    font-weight: 500;
}

.badge-published {
    background-color: var(--status-published);
    color: var(--white);
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius-pill);
    font-weight: 500;
}

/* Status Circles (for compact table view) */
.status-circle {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: inline-block;
    cursor: help;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.status-circle:hover {
    transform: scale(1.3);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.status-circle-draft {
    background-color: var(--status-draft);
}

.status-circle-published {
    background-color: var(--status-published);
}

/* Forms */
.form-control-custom {
    border: 1px solid var(--gray-medium);
    border-radius: var(--radius-md);
    padding: 0.75rem;
    transition: border-color var(--transition-fast);
}

.form-control-custom:focus {
    border-color: var(--primary-green);
    box-shadow: 0 0 0 0.2rem rgba(107, 142, 124, 0.25);
}

/* Readonly/Auto-generated fields with visual indicator */
.form-control-custom:read-only,
.form-control-custom[readonly] {
    background-color: #E8F4F1;
    background-image: linear-gradient(135deg, #E8F4F1 0%, #D4EBE5 100%);
    border-color: rgba(107, 142, 124, 0.4);
    cursor: not-allowed;
    color: var(--gray-dark);
    font-weight: 500;
}

.form-control-custom:read-only:focus,
.form-control-custom[readonly]:focus {
    background-color: #E8F4F1;
    background-image: linear-gradient(135deg, #E8F4F1 0%, #D4EBE5 100%);
    border-color: rgba(107, 142, 124, 0.5);
    box-shadow: 0 0 0 0.2rem rgba(107, 142, 124, 0.15);
}

.form-label-custom {
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

/* Login Page */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-green) 0%, #5A7A6B 100%);
}

.login-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: var(--spacing-xxl);
    width: 100%;
    max-width: 450px;
}

.login-logo {
    font-size: var(--font-size-xxl);
    font-weight: 700;
    color: var(--primary-orange);
    text-align: center;
    margin-bottom: var(--spacing-md);
}

.login-subtitle {
    text-align: center;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: var(--spacing-lg);
}

/* Dashboard Home */
.dashboard-header {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #1a2733 100%);
    color: var(--white);
    padding: var(--spacing-xxl);
    border-radius: var(--radius-lg);
    margin-bottom: var(--spacing-xl);
}

.stat-card {
    background: var(--white);
    border-left: 4px solid var(--primary-green);
    padding: var(--spacing-lg);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.stat-number {
    font-size: var(--font-size-xxl);
    font-weight: 700;
    color: var(--primary-orange);
}

.stat-label {
    color: var(--gray-dark);
    font-weight: 500;
}

/* Action Icons */
.action-icon {
    cursor: pointer;
    transition: transform var(--transition-fast);
    color: var(--gray-dark);
    margin: 0 0.25rem;
    display: inline-block;
    padding: 0.25rem 0.5rem;
}

.action-icon:hover {
    transform: scale(1.2);
}

.action-icon.view:hover {
    color: var(--primary-green);
}

.action-icon.edit:hover {
    color: var(--info);
}

.action-icon.delete:hover {
    color: var(--danger);
}

/* Pagination */
.pagination .page-link {
    color: var(--primary-green);
    border-color: var(--gray-medium);
}

.pagination .page-item.active .page-link {
    background-color: var(--primary-green);
    border-color: var(--primary-green);
    color: var(--white);
}

.pagination .page-link:hover {
    background-color: rgba(107, 142, 124, 0.1);
    border-color: var(--primary-green);
    color: var(--primary-green);
}

.pagination .page-item.disabled .page-link {
    color: var(--gray-medium);
    cursor: not-allowed;
}

.card-footer {
    background-color: var(--gray-light);
    border-top: 1px solid var(--gray-medium);
    padding: var(--spacing-lg);
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 1050;
}

/* Loading Spinner */
.spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* Responsive */
@media (max-width: 768px) {
    .navbar-brand {
        font-size: var(--font-size-lg);
    }
    
    .table-custom {
        font-size: var(--font-size-sm);
    }
    
    .login-card {
        padding: var(--spacing-xl);
        margin: var(--spacing-md);
    }
}

/* Utility Classes */
.text-highlight {
    color: var(--primary-highlight);
}

.bg-light-custom {
    background-color: var(--gray-light);
}

.mt-custom {
    margin-top: var(--spacing-xl);
}

