/* ===============================================
   ESTILOS: MÓDULO DE INFORMAÇÕES DO CLIENTE
   =============================================== */

/* ===== INFO VIEW ===== */
.info-view-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #2a2a2a;
}

.info-view-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
}

.info-view-header .text-muted {
    font-size: 14px;
    color: #999999;
}

/* ===== CLIENTS INFO LIST ===== */
.clients-info-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
}

@media (max-width: 768px) {
    .clients-info-list {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

/* ===== CLIENT INFO CARD ===== */
.client-info-card {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
}

.client-info-card:hover {
    border-color: #ff8c42;
    box-shadow: 0 4px 20px rgba(255, 140, 66, 0.2);
    transform: translateY(-2px);
}

.client-info-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #2a2a2a;
}

.client-info-basic {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.client-logo-preview {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 8px;
    background: #0a0a0a;
    padding: 5px;
}

.client-logo-placeholder {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0a0a0a;
    border: 2px dashed #3a3a3a;
    border-radius: 8px;
    font-size: 24px;
    color: #666666;
}

.client-info-title h3 {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 4px;
}

.client-info-title .text-muted {
    font-size: 13px;
    color: #999999;
}

/* ===== CLIENT INFO CONTENT ===== */
.client-info-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.client-info-content strong {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #cccccc;
    margin-bottom: 8px;
}

/* Color Palette Preview */
.color-palette-preview {
    padding: 15px;
    background: #0a0a0a;
    border-radius: 8px;
}

.color-swatches {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.color-swatch {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    border: 2px solid #2a2a2a;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.color-swatch:hover {
    transform: scale(1.1);
    border-color: #ffffff;
}

/* Notes Preview */
.notes-preview {
    padding: 15px;
    background: #0a0a0a;
    border-radius: 8px;
}

.notes-preview p {
    font-size: 13px;
    color: #e0e0e0;
    line-height: 1.6;
    margin: 0;
}

/* Files Preview */
.files-preview {
    padding: 15px;
    background: #0a0a0a;
    border-radius: 8px;
    font-size: 13px;
    color: #e0e0e0;
}

/* Tags Preview */
.tags-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tag {
    display: inline-block;
    padding: 5px 12px;
    background: linear-gradient(135deg, #ff8c42 0%, #ff6b35 100%);
    color: #ffffff;
    font-size: 11px;
    font-weight: 600;
    border-radius: 20px;
    white-space: nowrap;
}

/* ===== CLIENT INFO FOOTER ===== */
.client-info-footer {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #2a2a2a;
    font-size: 12px;
    color: #666666;
}

/* ===== EDITOR MODAL ===== */
.modal-large {
    max-width: 800px !important;
    max-height: 90vh;
    overflow-y: auto;
}

/* Logo Upload Area */
.logo-upload-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: #0a0a0a;
    border: 2px dashed #3a3a3a;
    border-radius: 12px;
    text-align: center;
}

.logo-preview {
    max-width: 200px;
    max-height: 200px;
    object-fit: contain;
    border-radius: 8px;
}

.logo-placeholder {
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    font-size: 48px;
    color: #666666;
    background: #1a1a1a;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.logo-placeholder:hover {
    background: #2a2a2a;
    color: #ff8c42;
    transform: scale(1.05);
}

/* Color Palette Editor */
.color-palette-editor {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    padding: 20px;
    background: #0a0a0a;
    border-radius: 12px;
}

.color-input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.color-input-group label {
    font-size: 13px;
    font-weight: 600;
    color: #cccccc;
}

.color-input {
    width: 100%;
    height: 50px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.color-input:hover {
    transform: scale(1.05);
}

.color-text-input {
    width: 100%;
    padding: 10px;
    background: #1a1a1a;
    border: 2px solid #2a2a2a;
    border-radius: 8px;
    color: #ffffff;
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    text-align: center;
    text-transform: uppercase;
}

.color-text-input:focus {
    outline: none;
    border-color: #ff8c42;
}

/* Tags Editor */
.tags-editor {
    padding: 20px;
    background: #0a0a0a;
    border-radius: 12px;
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
    min-height: 50px;
}

.tag-editable {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: linear-gradient(135deg, #ff8c42 0%, #ff6b35 100%);
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    border-radius: 20px;
    white-space: nowrap;
}

.tag-remove {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #ffffff;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.2s ease;
}

.tag-remove:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: scale(1.1);
}

.tag-input-group {
    display: flex;
    gap: 10px;
}

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

/* Files List */
.files-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
    padding: 20px;
    background: #0a0a0a;
    border-radius: 12px;
    min-height: 100px;
}

.file-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.file-item:hover {
    border-color: #3a3a3a;
    background: #2a2a2a;
}

.file-icon {
    font-size: 24px;
}

.file-name {
    flex: 1;
    font-size: 14px;
    color: #ffffff;
    font-weight: 500;
    word-break: break-word;
}

.file-size {
    font-size: 12px;
    color: #999999;
    white-space: nowrap;
}

/* Form Control */
.form-control {
    width: 100%;
    padding: 12px;
    background: #0a0a0a;
    border: 2px solid #2a2a2a;
    border-radius: 8px;
    color: #ffffff;
    font-size: 14px;
    font-family: 'Sora', sans-serif;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #ff8c42;
    background: #1a1a1a;
}

textarea.form-control {
    resize: vertical;
    min-height: 150px;
    line-height: 1.6;
    font-family: inherit;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #666666;
}

.empty-state p {
    font-size: 16px;
    margin: 0;
}

/* Error State */
.error-state {
    text-align: center;
    padding: 60px 20px;
    color: #dc2626;
}

.error-state p {
    font-size: 16px;
    margin: 0;
}

/* ===== MOBILE RESPONSIVO ===== */
@media (max-width: 768px) {
    .modal-large {
        max-width: 95% !important;
        margin: 10px auto !important;
    }
    
    .client-info-header {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .client-info-header .btn {
        width: 100%;
    }
    
    .color-palette-editor {
        grid-template-columns: 1fr;
    }
    
    .logo-upload-area {
        padding: 15px;
    }
    
    .logo-preview,
    .logo-placeholder {
        max-width: 150px;
        max-height: 150px;
        width: 150px;
        height: 150px;
    }
    
    .color-swatches {
        justify-content: center;
    }
    
    .file-item {
        flex-wrap: wrap;
    }
    
    .file-size {
        flex-basis: 100%;
        text-align: right;
    }
}

/* ===== ANIMAÇÕES ===== */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.client-info-card {
    animation: slideIn 0.3s ease forwards;
}

.client-info-card:nth-child(1) { animation-delay: 0s; }
.client-info-card:nth-child(2) { animation-delay: 0.1s; }
.client-info-card:nth-child(3) { animation-delay: 0.2s; }
.client-info-card:nth-child(4) { animation-delay: 0.3s; }
.client-info-card:nth-child(n+5) { animation-delay: 0.4s; }

/* ===== ACESSIBILIDADE ===== */
.color-swatch:focus,
.tag-remove:focus,
.file-item:focus {
    outline: 3px solid #ff8c42;
    outline-offset: 2px;
}

/* Modo de contraste alto */
@media (prefers-contrast: high) {
    .client-info-card {
        border-width: 2px;
    }
    
    .color-swatch {
        border-width: 3px;
    }
}
