/* Agency Dashboard Unified Styles */

:root {
    --primary-color: #00a67e;
    --primary-dark: #5568d3;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --text-color: #1f2937;
    --light-bg: #f9fafb;
    --border-color: #e5e7eb;
}

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

/* Navbar Styles */
.navbar {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    box-shadow: 0 2px 20px rgba(0, 166, 126, 0.1);
    padding: 0.6rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid transparent;
    border-image: linear-gradient(90deg, #00a67e 0%, #4facfe 100%) 1;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    margin-bottom: 2rem;
}

.navbar .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}

.navbar .logo h2 {
    background: linear-gradient(135deg, #00a67e 0%, #4facfe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    transition: all 0.3s ease;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.navbar .logo h2:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.navbar .nav-links {
    list-style: none;
    display: flex;
    gap: 0.3rem;
    margin: 0;
    padding: 0;
}

.navbar .nav-links a {
    text-decoration: none;
    color: #4b5563;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.5rem 0.9rem;
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    white-space: nowrap;
}

.navbar .nav-links a::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 10px;
    padding: 2px;
    background: linear-gradient(135deg, #00a67e 0%, #4facfe 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s;
}

.navbar .nav-links a.active,
.navbar .nav-links a:hover {
    color: #00a67e;
    background: linear-gradient(135deg, rgba(0, 166, 126, 0.1) 0%, rgba(79, 172, 254, 0.1) 100%);
    transform: translateY(-2px);
}

.navbar .nav-links a:hover::before {
    opacity: 1;
}

.navbar .user-menu {
    display: flex;
    gap: 0.8rem;
    align-items: center;
}

.navbar .user-menu span,
.navbar .user-menu #agencyName {
    color: white;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #00a67e 0%, #4facfe 100%);
    border-radius: 10px;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 166, 126, 0.3);
    border: 2px solid transparent;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.navbar .user-menu span:hover,
.navbar .user-menu #agencyName:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 166, 126, 0.4);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Backward compatibility */
.navbar .nav-brand h1 {
    display: none;
}

/* Dashboard Container */
.dashboard-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem 3rem;
}

/* Page Banner */
.page-banner {
    background: linear-gradient(135deg, #00a67e 0%, #4facfe 100%);
    color: white;
    padding: 3rem 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0, 166, 126, 0.3);
}

.page-banner h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.page-banner p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 0;
}

.page-banner .banner-actions {
    margin-top: 1.5rem;
}

.page-banner .btn {
    background: white;
    color: #00a67e;
    font-weight: 600;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1rem;
}

.page-banner .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* Welcome Banner */
.welcome-banner {
    background: linear-gradient(135deg, #00a67e 0%, #4facfe 100%);
    color: white;
    padding: 3rem 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0, 166, 126, 0.3);
}

.welcome-banner h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.welcome-banner p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: all 0.3s;
    cursor: pointer;
}

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

.stat-card .stat-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.stat-card h3 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-card p {
    color: #6b7280;
    font-size: 1.1rem;
    margin: 0;
}

/* Quick Actions */
.quick-actions {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.quick-actions h2 {
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

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

.action-btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: var(--light-bg);
    border: 2px solid transparent;
    border-radius: 10px;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s;
    font-weight: 600;
}

.action-btn:hover {
    border-color: var(--primary-color);
    background: white;
    transform: scale(1.05);
}

.action-btn .icon {
    font-size: 2rem;
}

/* Dashboard Section */
.dashboard-section {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--light-bg);
}

.section-header h2 {
    color: var(--text-color);
    margin: 0;
}

.view-all-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.view-all-link:hover {
    color: var(--primary-dark);
}

/* Trip/Booking Cards */
.trip-card, .booking-card {
    background: var(--light-bg);
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    transition: all 0.3s;
}

.trip-card:hover, .booking-card:hover {
    background: white;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.trip-header, .booking-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 1rem;
}

.trip-title, .booking-user {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--text-color);
}

.trip-status, .booking-status {
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 600;
}

.trip-status.active, .booking-status.confirmed {
    background: #d1fae5;
    color: #065f46;
}

.trip-status.full, .booking-status.pending {
    background: #fed7aa;
    color: #92400e;
}

.booking-status.pending {
    background: #fef3c7;
    color: #92400e;
}

.trip-info, .booking-details {
    display: flex;
    gap: 2rem;
    color: #6b7280;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.trip-info span, .booking-details span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Filters Section */
.filters-section, .filter-section {
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: end;
}

.filter-group {
    flex: 1;
    min-width: 200px;
}

.filter-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-color);
}

.filter-section select, .filter-group select {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    background: white;
}

.filter-section button {
    padding: 0.8rem 1.5rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-section button:hover {
    background: var(--primary-dark);
}

/* Trips/Bookings/Proposals Container */
.trips-container, .proposals-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

.bookings-list {
    display: grid;
    gap: 1.5rem;
}

/* Cards for lists */
.trip-card-new, .booking-card-new, .proposal-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: all 0.3s;
}

.trip-card-new:hover, .booking-card-new:hover, .proposal-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.15);
}

.trip-card-header {
    padding: 1.5rem;
    background: var(--light-bg);
}

.trip-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
    color: #6b7280;
    margin-top: 0.5rem;
}

.trip-card-body {
    padding: 1.5rem;
}

.trip-stats {
    display: flex;
    justify-content: space-around;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--light-bg);
}

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

.trip-stat .value {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    display: block;
}

.trip-stat .label {
    font-size: 0.85rem;
    color: #6b7280;
}

/* Actions */
.trip-actions, .booking-actions, .proposal-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.trip-actions button, .booking-actions button, .proposal-actions button {
    flex: 1;
    padding: 0.6rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-edit {
    background: #3b82f6;
    color: white;
}

.btn-edit:hover {
    background: #2563eb;
}

.btn-delete {
    background: #ef4444;
    color: white;
}

.btn-delete:hover {
    background: #dc2626;
}

.btn-confirm {
    background: var(--success-color);
    color: white;
}

.btn-confirm:hover {
    background: #059669;
}

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

.btn-reject:hover {
    background: #dc2626;
}

.btn-complete {
    background: #3b82f6;
    color: white;
}

.btn-complete:hover {
    background: #2563eb;
}

.btn-details, .btn-view {
    background: var(--light-bg);
    color: var(--text-color);
}

.btn-details:hover, .btn-view:hover {
    background: #d1d5db;
}

/* Loading & Empty States */
.loading {
    text-align: center;
    padding: 3rem;
    color: var(--primary-color);
    font-size: 1.2rem;
}

.no-data, .no-trips, .no-bookings, .no-proposals {
    text-align: center;
    padding: 3rem;
    color: #9ca3af;
    font-size: 1.1rem;
}

/* Status Colors */
.status-pending {
    background: #fef3c7;
    color: #92400e;
}

.status-confirmed, .status-approved {
    background: #d1fae5;
    color: #065f46;
}

.status-completed {
    background: #dbeafe;
    color: #1e40af;
}

.status-cancelled, .status-rejected {
    background: #fee2e2;
    color: #991b1b;
}

/* Proposal Specific */
.proposal-card {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.proposal-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--light-bg);
}

.proposal-title {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--text-color);
    margin-bottom: 0.3rem;
}

.proposal-location {
    color: #6b7280;
    font-size: 0.9rem;
}

.proposal-type {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: var(--light-bg);
    border-radius: 15px;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.proposal-description {
    color: #6b7280;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-top: 0.5rem;
}

/* Form Control */
.form-control {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Buttons */
.btn-primary {
    background: var(--primary-color);
    color: white;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-secondary {
    background: #6b7280;
    color: white;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
}

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

.btn-success {
    background: var(--success-color);
    color: white;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
}

.btn-success:hover {
    background: #059669;
}

.btn-danger {
    background: var(--danger-color);
    color: white;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
}

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

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    overflow-y: auto;
    padding: 2rem;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: 20px;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
}

.modal-content.large {
    max-width: 900px;
}

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

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

.modal-header h2 {
    color: var(--text-color);
    margin: 0;
    font-size: 1.5rem;
}

.close-btn {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #9ca3af;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
}

.close-btn:hover {
    background: var(--light-bg);
    color: var(--text-color);
}

.modal-body {
    padding: 2rem;
}

.modal-footer {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    padding: 2rem;
    border-top: 2px solid var(--light-bg);
}

/* Form Sections */
.form-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--light-bg);
}

.form-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

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

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s;
}

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

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

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

.help-text {
    color: #6b7280;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    font-style: italic;
}

.eco-section {
    background: #f0fdf4;
    padding: 1.5rem;
    border-radius: 10px;
    border: 2px solid #86efac;
}

.eco-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    color: #059669;
    font-size: 0.9rem;
}

/* URL Input Groups */
.url-input-group {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.url-input-group input {
    flex: 1;
}

.add-url-btn {
    padding: 0.8rem 1rem;
    background: var(--success-color);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.add-url-btn:hover {
    background: #059669;
}

/* Destinations Grid */
.destinations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
    max-height: 300px;
    overflow-y: auto;
    padding: 1rem;
    background: var(--light-bg);
    border-radius: 10px;
}

.selected-destinations {
    background: var(--light-bg);
    padding: 1rem;
    border-radius: 10px;
}

.selected-destinations h4 {
    margin-bottom: 1rem;
    color: var(--text-color);
}

.selected-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

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

/* Confirm/Warning/Success Boxes */
.confirm-box,
.warning-box,
.success-box {
    text-align: center;
    padding: 2rem;
}

.confirm-box i,
.warning-box i,
.success-box i {
    font-size: 4rem;
    margin-bottom: 1rem;
    display: block;
}

.confirm-box i {
    color: var(--success-color);
}

.warning-box i {
    color: var(--warning-color);
}

.success-box i {
    color: var(--primary-color);
}

.confirm-box p,
.warning-box p,
.success-box p {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

/* Responsive */
@media (max-width: 768px) {
    .navbar .nav-links {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .dashboard-container {
        padding: 0 1rem 2rem;
    }
    
    .page-banner h1, .welcome-banner h1 {
        font-size: 1.8rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .trips-container, .proposals-list {
        grid-template-columns: 1fr;
    }
    
    .trip-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .modal {
        padding: 1rem;
    }
    
    .modal-content {
        max-width: 100%;
    }
    
    .form-row, .form-grid {
        grid-template-columns: 1fr;
    }
}
