/* Additional Styles for Enhanced UI */

/* Modal Styles */
#detail_modal .modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 8px 8px 0 0;
}

#detail_modal .modal-title {
    font-weight: 600;
    font-size: 18px;
}

#detail_modal .modal-content {
    border: none;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

#detail_modal .modal-body {
    padding: 20px;
}

#detail_modal .table {
    margin-top: 15px;
    border-radius: 6px;
    overflow: hidden;
}

#detail_modal .table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #495057;
    border-bottom: 2px solid #dee2e6;
}

#detail_modal .table td {
    vertical-align: middle;
}

#detail_modal .btn-close {
    filter: brightness(0) invert(1);
}

/* Status Badges */
.status-badge {
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 500;
    /*text-transform: uppercase;*/
}

.status-badge.new {
    background: rgba(52, 152, 219, 0.1);
    color: #3498db;
}

.status-badge.contacted {
    background: rgba(241, 196, 15, 0.1);
    color: #f1c40f;
}

.status-badge.follow-up {
    background: rgba(230, 126, 34, 0.1);
    color: #e67e22;
}

.status-badge.closed {
    background: rgba(46, 204, 113, 0.1);
    color: #2ecc71;
}

.status-badge.active {
    background: rgba(46, 204, 113, 0.1);
    color: #2ecc71;
}

.status-badge.inactive {
    background: rgba(149, 165, 166, 0.1);
    color: #95a5a6;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.btn-action {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    border: none;
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0 2px;
}

.btn-action:hover {
    background: rgba(102, 126, 234, 0.2);
}

/* Page Headers */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e1e8ed;
}

.page-header h2 {
    color: #333;
    font-size: 24px;
    font-weight: 600;
}

/* Tables */
.enquiries-table,
.users-table {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.enquiries-table table,
.users-table table {
    width: 100%;
    border-collapse: collapse;
}

.enquiries-table th,
.users-table th {
    background: #f8f9fa;
    padding: 15px;
    text-align: left;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #e1e8ed;
}

.enquiries-table td,
.users-table td {
    padding: 15px;
    border-bottom: 1px solid #f1f3f4;
}

.enquiries-table tr:hover,
.users-table tr:hover {
    background: #f8f9fa;
}

/* Content Grid */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 30px;
}

.recent-enquiries,
.upcoming-followups {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.recent-enquiries h3,
.upcoming-followups h3 {
    color: #333;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
}

/* Enquiry Items */
.enquiry-item,
.followup-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #f1f3f4;
}

.enquiry-item:last-child,
.followup-item:last-child {
    border-bottom: none;
}

.enquiry-info h4,
.followup-info h4 {
    color: #333;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 5px;
}

.enquiry-info p,
.followup-info p {
    color: #666;
    font-size: 13px;
    margin-bottom: 3px;
}

.enquiry-info small,
.followup-info small {
    color: #999;
    font-size: 12px;
}

.complete-btn {
    background: rgba(46, 204, 113, 0.1);
    color: #2ecc71;
    border: none;
    padding: 8px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.complete-btn:hover {
    background: rgba(46, 204, 113, 0.2);
}

/* Forms */
.settings-form {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.setting-section {
    margin-bottom: 30px;
}

.setting-section h3 {
    color: #333;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e1e8ed;
}

.setting-section .form-group {
    margin-bottom: 20px;
}

.setting-section label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
    font-size: 14px;
}

.setting-section input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.setting-section input:focus {
    outline: none;
    border-color: #667eea;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.checkbox-label input {
    width: auto;
}

/* Calendar Placeholder */
.bookings-calendar {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.calendar-placeholder i {
    font-size: 48px;
    color: #667eea;
    margin-bottom: 20px;
}

.calendar-placeholder h3 {
    color: #333;
    font-size: 20px;
    margin-bottom: 10px;
}

.calendar-placeholder p {
    color: #666;
    margin-bottom: 30px;
}

.booking-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.booking-stat {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
}

.booking-stat h4 {
    color: #666;
    font-size: 14px;
    margin-bottom: 5px;
}

.booking-stat p {
    color: #333;
    font-size: 18px;
    font-weight: 600;
}

/* Timeline Placeholder */
.followups-timeline {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.timeline-placeholder i {
    font-size: 48px;
    color: #667eea;
    margin-bottom: 20px;
}

.timeline-placeholder h3 {
    color: #333;
    font-size: 20px;
    margin-bottom: 10px;
}

.timeline-placeholder p {
    color: #666;
    margin-bottom: 30px;
}

.followup-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.followup-stat {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
}

.followup-stat h4 {
    color: #666;
    font-size: 14px;
    margin-bottom: 5px;
}

.followup-stat p {
    color: #333;
    font-size: 18px;
    font-weight: 600;
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.project-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-image {
    height: 150px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 36px;
}

.project-info {
    padding: 20px;
}

.project-info h4 {
    color: #333;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.project-info p {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
}

.project-progress {
    display: flex;
    align-items: center;
    gap: 10px;
}

.progress-bar {
    flex: 1;
    height: 6px;
    background: #e1e8ed;
    border-radius: 3px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transition: width 0.3s ease;
}

.project-progress span {
    font-size: 12px;
    color: #666;
    font-weight: 500;
}

/* Reports Dashboard */
.reports-dashboard {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.report-summary {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
}

.summary-card {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
}

.summary-card h3 {
    color: #333;
    font-size: 16px;
    margin-bottom: 20px;
}

.summary-stats {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.summary-item .label {
    color: #666;
    font-size: 14px;
}

.summary-item .value {
    color: #333;
    font-size: 16px;
    font-weight: 600;
}

.chart-placeholder {
    background: #f8f9fa;
    padding: 40px;
    border-radius: 10px;
    text-align: center;
}

.chart-placeholder i {
    font-size: 48px;
    color: #667eea;
    margin-bottom: 20px;
}

.chart-placeholder h3 {
    color: #333;
    font-size: 18px;
    margin-bottom: 10px;
}

.chart-placeholder p {
    color: #666;
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Animations */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

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

.slide-in {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

/* Print Styles */
@media print {
    .sidebar,
    .header,
    .btn-primary,
    .btn-action {
        display: none !important;
    }
    
    .main-content {
        margin-left: 0 !important;
    }
    
    .stat-card {
        break-inside: avoid;
    }
}
