/* dashboard.css - Beautiful Modern Design */
:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --success-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --warning-gradient: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    --info-gradient: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    --dark-gradient: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    --glass-bg: rgba(255, 255, 255, 0.25);
    --glass-border: rgba(255, 255, 255, 0.18);
    --shadow-light: 0 8px 32px rgba(31, 38, 135, 0.37);
    --shadow-medium: 0 12px 40px rgba(0, 0, 0, 0.1);
    --shadow-heavy: 0 20px 60px rgba(0, 0, 0, 0.15);
    --border-radius: 20px;
    --border-radius-small: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.dashboard-container {
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 30px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
    padding: 0 20px;
}

/* Alert styling */
.not-active {
    font-size: 1.3em;
    margin-bottom: 40px;
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
    border-radius: var(--border-radius);
    padding: 25px 30px;
    color: #d32f2f;
    box-shadow: var(--shadow-light);
    border: 2px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.not-active::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.not-active i {
    margin-right: 15px;
    font-size: 1.6em;
    background: var(--warning-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Dashboard header */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding: 30px 0;
    border-bottom: 3px solid transparent;
    background: linear-gradient(90deg, transparent, var(--glass-bg), transparent);
    border-radius: var(--border-radius);
    backdrop-filter: blur(10px);
    position: relative;
}

.dashboard-header::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary-gradient);
    border-radius: 2px;
}

.dashboard-header h1 {
    font-size: 2.5em;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
}

.dashboard-header h1::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--secondary-gradient);
    border-radius: 2px;
}

.dashboard-header-actions {
    display: flex;
    gap: 15px;
}

.logout-form {
    margin: 0;
}

.logout-form button {
    background: var(--secondary-gradient);
    border: none;
    padding: 12px 25px;
    border-radius: var(--border-radius-small);
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-light);
    position: relative;
    overflow: hidden;
}

.logout-form button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.logout-form button:hover::before {
    left: 100%;
}

.logout-form button:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

/* Dashboard grid layout */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

@media (max-width: 768px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Card styling */
.dashboard-card {
    background: var(--glass-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(15px);
    position: relative;
}

.dashboard-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
}

.dashboard-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-heavy);
}

.card-header {
    padding: 25px 30px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    border-bottom: 1px solid var(--glass-border);
    position: relative;
}

.card-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--primary-gradient);
    opacity: 0.1;
    z-index: -1;
}

.card-header h2 {
    margin: 0;
    font-size: 1.5em;
    color: #2c3e50;
    display: flex;
    align-items: center;
    font-weight: 700;
}

.card-header h2 i {
    margin-right: 15px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.3em;
}



.card-footer {
    padding: 20px 30px;
    border-top: 1px solid var(--glass-border);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.1) 100%);
}

/* Agency info card */
.agency-info .card-body-dashboard {
    padding: 0;
}

.info-item {
    display: flex;
    padding: 20px 30px;
    border-bottom: 1px solid var(--glass-border);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.info-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: var(--primary-gradient);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.info-item:hover::before {
    transform: scaleY(1);
}

.info-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(10px);
}

.info-item:last-child {
    border-bottom: none;
}

.info-label-dashboard {
    flex: 0 0 140px;
    font-weight: 700;
    color: #34495e;
    font-size: 1.1em;
    position: relative;
}

.info-label-dashboard::after {
    content: ':';
    color: #7f8c8d;
    margin-left: 5px;
}

.info-value {
    flex: 1;
    color: #2c3e50;
    font-weight: 500;
}

.info-value a {
    color: #3498db;
    text-decoration: none;
    position: relative;
    transition: var(--transition);
}

.info-value a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-gradient);
    transition: width 0.3s ease;
}

.info-value a:hover::after {
    width: 100%;
}

.info-value a:hover {
    color: #2980b9;
}

.not-specified {
    color: #95a5a6;
    font-style: italic;
    background: rgba(149, 165, 166, 0.1);
    padding: 5px 10px;
    border-radius: var(--border-radius-small);
}

/* Stats card */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.stat-item {
    text-align: center;
    padding: 25px 15px;
    background: var(--glass-bg);
    border-radius: var(--border-radius-small);
    border: 1px solid var(--glass-border);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.stat-icon {
    margin-bottom: 15px;
    font-size: 2em;
    opacity: 0.8;
    transition: var(--transition);
}

.stat-item:nth-child(1) .stat-icon i {
    background: var(--success-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-item:nth-child(2) .stat-icon i {
    background: var(--warning-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-item:nth-child(3) .stat-icon i {
    background: var(--secondary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-item:hover .stat-icon {
    transform: scale(1.1);
    opacity: 1;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--success-gradient);
    opacity: 0.1;
    z-index: -1;
}

/* Different gradients for different stat types */
.stat-item:nth-child(1)::before {
    background: var(--success-gradient);
}

.stat-item:nth-child(2)::before {
    background: var(--warning-gradient);
}

.stat-item:nth-child(3)::before {
    background: var(--secondary-gradient);
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-light);
}

.stat-value {
    font-size: 2.2em;
    font-weight: 800;
    background: var(--success-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Different colors for different stat values */
.stat-item:nth-child(1) .stat-value {
    background: var(--success-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-item:nth-child(2) .stat-value {
    background: var(--warning-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-item:nth-child(3) .stat-value {
    background: var(--secondary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 1em;
    color: #34495e;
    font-weight: 600;
}

/* Tours section */
.tours-section {
    margin-top: 30px;
}

.tours-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.add-tour-btn {
    background: var(--success-gradient);
    border: none;
    padding: 15px 30px;
    border-radius: var(--border-radius-small);
    color: white;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: var(--shadow-light);
    position: relative;
    overflow: hidden;
}

.add-tour-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.add-tour-btn:hover::before {
    left: 100%;
}

.add-tour-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
    color: white;
    text-decoration: none;
}

.tour-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    padding: 30px;
}

@media (max-width: 576px) {
    .tour-list {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px;
    }
}

/* Tour card */
.tour-card {
    background: var(--glass-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(15px);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.tour-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--accent-color);
    z-index: 2;
}

.tour-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: var(--shadow-heavy);
}

.tour-status-wrapper {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 3;
}

.tour-status {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.85em;
    font-weight: 700;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: var(--transition);
}

.tour-status i {
    margin-right: 8px;
    font-size: 1.1em;
}

.tour-status.active {
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.9) 0%, rgba(39, 174, 96, 0.9) 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(46, 204, 113, 0.3);
}

.tour-status.inactive {
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.9) 0%, rgba(192, 57, 43, 0.9) 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

.tour-image-container {
    height: 220px;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}

.tour-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.tour-card:hover .tour-image {
    transform: scale(1.1);
}

.tour-image-container::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.3));
    pointer-events: none;
}

.tour-details {
    /* padding: 25px; */
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.7) 100%);
    backdrop-filter: blur(10px);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.tour-details h3 {
    margin: 0 0 20px 0;
    font-size: 1.4em;
    font-weight: 700;
    color: #2c3e50;
    position: relative;
    padding-bottom: 10px;
}

.tour-details h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--primary-gradient);
    border-radius: 2px;
}

.tour-info {
    margin-bottom: 25px;
    flex: 1;
}

.tour-info p {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    color: #34495e;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: var(--border-radius-small);
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.5);
}

.tour-info p:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: translateX(5px);
}

.tour-info i {
    width: 25px;
    margin-right: 12px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.1em;
}

.tour-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.tour-actions .btn {
    flex: 1;
    min-width: 100px;
    padding: 12px 20px;
    border: none;
    border-radius: var(--border-radius-small);
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.tour-actions .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.tour-actions .btn:hover::before {
    left: 100%;
}

.tour-actions .btn-warning {
    background: var(--warning-gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.3);
}

.tour-actions .btn-info {
    background: var(--info-gradient);
    color: #2c3e50;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.tour-actions .btn-success {
    background: var(--success-gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(46, 204, 113, 0.3);
}

.tour-actions .btn-secondary {
    background: var(--dark-gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(52, 73, 94, 0.3);
}

.tour-actions .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.tour-update-status {
    margin-top: auto;
    padding: 12px 16px;
    background: linear-gradient(135deg, rgba(241, 196, 15, 0.1) 0%, rgba(243, 156, 18, 0.1) 100%);
    border-radius: var(--border-radius-small);
    border-left: 4px solid #f39c12;
    flex-shrink: 0;
}

.tour-update-status small {
    color: #e67e22;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.tour-update-status i {
    margin-right: 8px;
    color: #f39c12;
}

/* Empty tours message */
.no-tours-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 30px;
    text-align: center;
    background: var(--glass-bg);
    border-radius: var(--border-radius);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(15px);
}

.no-tours {
    color: #7f8c8d;
    font-style: italic;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    font-size: 1.2em;
    font-weight: 500;
}

.no-tours i {
    margin-right: 12px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.5em;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .dashboard-container {
        max-width: 100%;
        margin: 20px;
        padding: 0 20px;
    }
    
    .tour-list {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
        gap: 25px;
        padding: 25px;
    }
}

@media (max-width: 768px) {
    .dashboard-container {
        margin: 10px;
        padding: 0 15px;
    }
    
    .dashboard-header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .dashboard-header h1 {
        font-size: 2em;
    }
    
    .tour-list {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px;
    }
    
    .tour-actions {
        flex-direction: column;
    }
    
    .tour-actions .btn {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .dashboard-container {
        margin: 5px;
        padding: 0 10px;
    }
    
    .card-body-dashboard {
        padding: 20px;
    }
    
    .tour-details {
        padding: 20px;
        min-height: 200px;
    }
    
    .tour-details h3 {
        font-size: 1.2em;
    }
    
    .tour-info p {
        font-size: 0.9em;
        padding: 6px 10px;
    }
    
    .tour-actions {
        margin-bottom: 10px;
    }
    
    .tour-actions .btn {
        padding: 10px 15px;
        font-size: 0.9em;
    }
    
    .tour-update-status {
        margin-top: auto;
        padding: 10px 14px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .stat-value {
        font-size: 1.8em;
    }
}

@media (max-width: 480px) {
    .dashboard-header h1 {
        font-size: 1.8em;
    }
    
    .info-item {
        flex-direction: column;
        gap: 8px;
    }
    
    .info-label-dashboard {
        flex: none;
        font-size: 1em;
    }
    
    .tour-image-container {
        height: 180px;
    }
    
    .tour-details {
        padding: 15px;
        min-height: 180px;
    }
    
    .tour-details h3 {
        font-size: 1.1em;
        margin-bottom: 15px;
    }
    
    .tour-info {
        margin-bottom: 15px;
    }
    
    .tour-actions {
        margin-bottom: 8px;
    }
    
    .tour-update-status {
        padding: 8px 12px;
        margin-top: auto;
    }
    
    .tour-update-status small {
        font-size: 0.8em;
    }
}
