/* Zizu Brand Colors and Variables */
:root {
    --zizu-gold: #D4AF37;
    --zizu-bronze: #B8860B;
    --zizu-orange: #FF6B35;
    --zizu-orange-light: #FF8A5C;
    --zizu-dark: #1a1a1a;
    --zizu-dark-secondary: #2d2d2d;
    --zizu-light: #f8f9fa;
    --zizu-gradient: linear-gradient(135deg, #D4AF37, #B8860B);
    --zizu-gradient-orange: linear-gradient(135deg, #D4AF37 0%, #FF8A5C 50%, #B8860B 100%);
    --zizu-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
    --zizu-shadow-hover: 0 8px 25px rgba(212, 175, 55, 0.3);
    --zizu-shadow-orange: 0 4px 15px rgba(255, 107, 53, 0.15);
}

/* Global Styles */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: #ffffff;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

/* Header Styles */
.zizu-header {
    background: var(--zizu-dark);
    border-bottom: 3px solid;
    border-image: linear-gradient(90deg, var(--zizu-gold) 70%, var(--zizu-orange-light) 100%) 1;
    padding: 1.5rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.zizu-logo {
    width: 50px;
    height: 50px;
    filter: drop-shadow(0 2px 4px rgba(212, 175, 55, 0.3));
}

.zizu-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--zizu-gold);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.zizu-subtitle {
    font-size: 0.9rem;
    color: #cccccc;
    font-weight: 300;
    letter-spacing: 0.5px;
}

.total-estimate-header {
    background: var(--zizu-gradient-orange);
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    box-shadow: var(--zizu-shadow), var(--zizu-shadow-orange);
}

.estimate-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--zizu-dark);
}

.estimate-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--zizu-dark);
    margin-left: 0.5rem;
}

/* Navigation Styles */
.zizu-nav {
    background: var(--zizu-dark-secondary);
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.zizu-tabs {
    border: none;
}

.zizu-tabs .nav-link {
    background: transparent;
    border: none;
    color: #cccccc;
    font-weight: 500;
    padding: 1rem 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    border-radius: 0;
}

.zizu-tabs .nav-link:hover {
    color: var(--zizu-gold);
    background: rgba(212, 175, 55, 0.1);
}

.zizu-tabs .nav-link.active {
    color: var(--zizu-gold);
    background: rgba(212, 175, 55, 0.15);
    border-bottom: 3px solid var(--zizu-gold);
}

.zizu-tabs .nav-link i {
    opacity: 0.8;
}

/* Card Styles */
.zizu-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.zizu-card:hover {
    border-color: rgba(212, 175, 55, 0.4);
    box-shadow: var(--zizu-shadow);
    transform: translateY(-2px);
}

.zizu-card .card-header {
    background: var(--zizu-gradient-orange);
    color: var(--zizu-dark);
    font-weight: 600;
    border-radius: 12px 12px 0 0;
    border-bottom: none;
    padding: 1rem 1.5rem;
}

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

/* Room Card Styles */
.room-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 10px;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    cursor: grab;
    position: relative;
}

.room-card:active {
    cursor: grabbing;
}

.room-card.dragging {
    opacity: 0.6;
    transform: rotate(2deg);
}

.room-card:hover {
    border-color: var(--zizu-gold);
    box-shadow: var(--zizu-shadow);
}

.room-card.refurbishment {
    border-left: 4px solid var(--zizu-orange-light);
}

.room-card.construction {
    border-left: 4px solid #4caf50;
}

.room-header {
    background: rgba(212, 175, 55, 0.1);
    padding: 1rem 1.5rem;
    border-radius: 10px 10px 0 0;
    cursor: pointer;
    display: flex;
    justify-content: between;
    align-items: center;
    transition: all 0.3s ease;
}

.room-header:hover {
    background: rgba(212, 175, 55, 0.2);
}

.room-header h5 {
    margin: 0;
    color: var(--zizu-gold);
    font-weight: 600;
}

.room-content {
    padding: 1.5rem;
    display: block;
}

.room-content.collapsed {
    display: none;
}

.drag-handle {
    color: #666;
    font-size: 1.2rem;
    cursor: grab;
    margin-right: 0.5rem;
}

.drag-handle:active {
    cursor: grabbing;
}

/* Form Styles */
.form-label {
    color: var(--zizu-gold);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-control, .form-select {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 8px;
    color: #ffffff;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--zizu-gold);
    box-shadow: 0 0 0 0.2rem rgba(212, 175, 55, 0.25);
    color: #ffffff;
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-select option {
    background: var(--zizu-dark);
    color: #ffffff;
}

/* Button Styles */
.btn-zizu {
    background: var(--zizu-gradient-orange);
    border: none;
    color: var(--zizu-dark);
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: var(--zizu-shadow-orange);
}

.btn-zizu:hover {
    background: linear-gradient(135deg, #e6c547 0%, #FF8A5C 50%, #c8941d 100%);
    color: var(--zizu-dark);
    transform: translateY(-2px);
    box-shadow: var(--zizu-shadow-hover), var(--zizu-shadow-orange);
}

.btn-zizu:active {
    transform: translateY(0);
}

.btn-outline-secondary {
    border-color: rgba(255, 255, 255, 0.3);
    color: #cccccc;
}

.btn-outline-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    color: #ffffff;
}

.btn-danger {
    background: linear-gradient(135deg, #dc3545, #c82333);
    border: none;
    color: #ffffff;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #e14757, #d32f40);
    color: #ffffff;
}

/* Empty State */
.empty-state {
    display: block;
}

.empty-state.hidden {
    display: none;
}

/* Total Estimate Display */
.total-estimate-display {
    background: rgba(212, 175, 55, 0.1);
    padding: 1rem 1.5rem;
    border-radius: 10px;
    border: 2px solid rgba(212, 175, 55, 0.3);
}

.total-estimate-display .estimate-label {
    font-size: 1.1rem;
    color: #cccccc;
}

.total-estimate-display .estimate-amount {
    font-size: 2rem;
    font-weight: 700;
    color: var(--zizu-gold);
    margin-left: 0.5rem;
}

/* Footer */
.zizu-footer {
    background: var(--zizu-dark);
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    padding: 2rem 0;
    color: #cccccc;
}

/* Responsive Design */
@media (max-width: 768px) {
    .zizu-title {
        font-size: 1.5rem;
    }
    
    .zizu-subtitle {
        font-size: 0.8rem;
    }
    
    .total-estimate-header {
        margin-top: 1rem;
        text-align: center !important;
    }
    
    .zizu-tabs .nav-link {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    .room-header {
        padding: 0.75rem 1rem;
    }
    
    .room-content {
        padding: 1rem;
    }
    
    .total-estimate-display .estimate-amount {
        font-size: 1.5rem;
        display: block;
        margin-left: 0;
        margin-top: 0.25rem;
    }
}

@media (max-width: 576px) {
    .zizu-logo {
        width: 40px;
        height: 40px;
    }
    
    .zizu-title {
        font-size: 1.3rem;
    }
    
    .estimate-amount {
        font-size: 1.2rem;
    }
    
    .zizu-tabs .nav-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
    }
    
    .zizu-tabs .nav-link i {
        display: none;
    }
}

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

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

.shake {
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

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

/* Validation Styles */
.was-validated .form-control:invalid {
    border-color: #dc3545;
    background-color: rgba(220, 53, 69, 0.1);
}

.was-validated .form-control:valid {
    border-color: #28a745;
    background-color: rgba(40, 167, 69, 0.1);
}

.invalid-feedback {
    display: block;
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Drag and Drop Styles */
.rooms-container {
    min-height: 200px;
    border: 2px dashed transparent;
    border-radius: 10px;
    padding: 1rem;
    transition: all 0.3s ease;
}

.rooms-container.drag-over {
    border-color: var(--zizu-gold);
    background: rgba(212, 175, 55, 0.05);
}

/* Image Upload and Preview Styles */
.image-upload {
    border: 2px dashed rgba(212, 175, 55, 0.3);
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.image-upload:hover {
    border-color: var(--zizu-gold);
    background: rgba(212, 175, 55, 0.1);
}

.image-preview-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}

.image-preview {
    position: relative;
    width: 120px;
    height: 120px;
    border: 2px solid rgba(212, 175, 55, 0.3);
    border-radius: 8px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.image-preview:hover {
    border-color: var(--zizu-gold);
    transform: scale(1.05);
    box-shadow: var(--zizu-shadow);
}

.image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-preview:hover .image-overlay {
    opacity: 1;
}

.image-overlay .remove-image {
    background: #dc3545;
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.image-overlay .remove-image:hover {
    background: #c82333;
    transform: scale(1.1);
}

.image-name {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 2px 4px;
    font-size: 0.7rem;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

/* File input styling */
.form-control[type="file"] {
    padding: 0.5rem;
    cursor: pointer;
}

.form-control[type="file"]::-webkit-file-upload-button {
    background: var(--zizu-gradient);
    border: none;
    color: var(--zizu-dark);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    margin-right: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-control[type="file"]::-webkit-file-upload-button:hover {
    background: linear-gradient(135deg, #e6c547, #c8941d);
    transform: translateY(-1px);
}

/* Admin-specific styles */
.text-zizu {
    color: var(--zizu-gold) !important;
}

.table-dark {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(212, 175, 55, 0.2);
}

.table-dark th,
.table-dark td {
    border-color: rgba(212, 175, 55, 0.1);
    color: #ffffff;
}

.table-dark th {
    background-color: rgba(212, 175, 55, 0.1);
    color: var(--zizu-gold);
    font-weight: 600;
}

.table-striped > tbody > tr:nth-of-type(odd) > td {
    background-color: rgba(255, 255, 255, 0.02);
}

.badge {
    font-size: 0.75em;
    padding: 0.35em 0.65em;
}

.badge.bg-warning {
    background-color: #ff9800 !important;
    color: var(--zizu-dark);
}

.badge.bg-success {
    background-color: #4caf50 !important;
    color: var(--zizu-dark);
}

/* Responsive admin adjustments */
@media (max-width: 768px) {
    .total-estimate-header {
        margin-top: 1rem;
    }
    
    .d-flex.align-items-center.justify-content-end {
        flex-direction: column;
        align-items: center !important;
        gap: 1rem;
    }
    
    .table-responsive {
        font-size: 0.85rem;
    }
    
    .btn-sm {
        padding: 0.25rem 0.4rem;
        font-size: 0.75rem;
    }
}

/* Print Styles */
@media print {
    body {
        background: white;
        color: black;
    }
    
    .zizu-header, .zizu-nav, .zizu-footer {
        display: none;
    }
    
    .zizu-card {
        background: white;
        border: 1px solid #ddd;
        box-shadow: none;
    }
    
    .image-preview-container {
        display: none;
    }
}


/* NEW FLOW STYLING */

/* Step Process Styling */
.step-item {
    text-align: center;
    padding: 10px;
}

.step-number {
    display: inline-block;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #c9a96e;
    color: #2c2c2c;
    font-weight: bold;
    line-height: 30px;
    margin-bottom: 8px;
}

/* Project Type Cards */
.project-type-card {
    border: 2px solid #555;
    border-radius: 10px;
    background: #3a3a3a;
    transition: all 0.3s ease;
    cursor: pointer;
    height: 100%;
}

.project-type-card:hover {
    border-color: #c9a96e;
    background: #444;
    transform: translateY(-2px);
}

.project-type-card.selected {
    border-color: #c9a96e;
    background: linear-gradient(135deg, #4a4a4a, #5a5a5a);
    box-shadow: 0 4px 12px rgba(201, 169, 110, 0.3);
}

.project-type-card ul {
    list-style: none;
    padding: 0;
}

.project-type-card ul li:before {
    content: '✓ ';
    color: #c9a96e;
    font-weight: bold;
}

/* Disabled tab styling */
.nav-link.disabled {
    opacity: 0.5;
    pointer-events: none;
}

/* Save status styling */
#clientSaveStatus {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
