/* Condo360 Comunicados - Estilos CSS */
/* Compatible con tema Astra - Fondo blanco */

.condo360-comunicados-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 30px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.condo360-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.condo360-title {
    font-size: 28px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 10px 0;
    line-height: 1.3;
}

.condo360-description {
    font-size: 16px;
    color: #666;
    margin: 0;
    line-height: 1.5;
}

.condo360-form {
    margin-bottom: 30px;
}

.condo360-form-group {
    margin-bottom: 25px;
}

.condo360-label {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.condo360-input,
.condo360-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    color: #333;
    background: #ffffff;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.condo360-input:focus,
.condo360-textarea:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.1);
}

.condo360-textarea {
    resize: vertical;
    min-height: 80px;
}

/* File Input Styling */
.condo360-file-input-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
}

.condo360-file-input {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.condo360-file-info {
    display: flex;
    flex-direction: column;
    padding: 20px;
    border: 2px dashed #e0e0e0;
    border-radius: 8px;
    background: #fafafa;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.condo360-file-input:hover + .condo360-file-info {
    border-color: #007cba;
    background: #f8fcff;
}

.condo360-file-text {
    font-size: 16px;
    color: #333;
    font-weight: 500;
    margin-bottom: 5px;
}

.condo360-file-size {
    font-size: 14px;
    color: #666;
}

.condo360-file-preview {
    margin-top: 10px;
    padding: 10px;
    background: #f0f8ff;
    border-radius: 6px;
    border-left: 4px solid #007cba;
    display: none;
}

.condo360-file-preview.show {
    display: block;
}

.condo360-file-preview-text {
    font-size: 14px;
    color: #333;
    margin: 0;
}

/* Submit Button */
.condo360-submit-btn {
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, #007cba 0%, #005a87 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.condo360-submit-btn:hover {
    background: linear-gradient(135deg, #005a87 0%, #004066 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 124, 186, 0.3);
}

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

.condo360-submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.condo360-btn-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.condo360-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: condo360-spin 1s linear infinite;
}

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

/* Progress Bar */
.condo360-progress-container {
    margin: 20px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #007cba;
}

.condo360-progress-bar {
    width: 100%;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.condo360-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #007cba 0%, #00a0d2 100%);
    border-radius: 4px;
    width: 0%;
    transition: width 0.5s ease;
}

.condo360-progress-text {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

/* Success Tooltip */
.condo360-success-tooltip {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10000;
    animation: condo360-fadeIn 0.5s ease;
}

.condo360-tooltip-content {
    background: #ffffff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    border: 2px solid #4caf50;
    max-width: 400px;
    text-align: center;
}

.condo360-tooltip-icon {
    width: 60px;
    height: 60px;
    background: #4caf50;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    font-weight: bold;
    margin: 0 auto 20px;
}

.condo360-tooltip-text {
    color: #333;
}

.condo360-tooltip-text strong {
    display: block;
    font-size: 18px;
    margin-bottom: 10px;
    color: #2e7d32;
}

.condo360-tooltip-text p {
    margin: 0 0 15px 0;
    color: #666;
    line-height: 1.5;
}

.condo360-batch-info {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    margin-top: 15px;
    border-left: 4px solid #007cba;
}

.condo360-batch-info strong {
    color: #007cba;
    display: block;
    margin-bottom: 8px;
}

.condo360-batch-info p {
    margin: 0 0 8px 0;
    font-size: 14px;
    line-height: 1.4;
}

.condo360-batch-info p:last-child {
    margin-bottom: 0;
}


@keyframes condo360-fadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* Error Messages */
.condo360-error {
    padding: 15px;
    background: #ffebee;
    border: 1px solid #f44336;
    border-radius: 8px;
    color: #c62828;
    margin-top: 20px;
}

.condo360-access-denied {
    padding: 20px;
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    color: #856404;
    text-align: center;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    .condo360-comunicados-container {
        padding: 20px;
        margin: 10px;
    }
    
    .condo360-title {
        font-size: 24px;
    }
    
    .condo360-tooltip-content {
        margin: 20px;
        padding: 20px;
    }
}

/* Overlay para el tooltip */
.condo360-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    animation: condo360-fadeIn 0.3s ease;
}
