/* Estilos del plugin Tia Lucy Condominio */

/* === ESTILOS GENERALES === */
.tlc-form {
    max-width: 600px;
    margin: 20px 0;
}

.tlc-form-group {
    margin-bottom: 20px;
}

.tlc-form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
}

.tlc-form-group input,
.tlc-form-group select,
.tlc-form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.tlc-form-group input:focus,
.tlc-form-group select:focus,
.tlc-form-group textarea:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 5px rgba(0, 115, 170, 0.3);
}

.tlc-form-group small {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 12px;
}

/* === BOTONES === */
.tlc-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #f1f1f1;
    color: #333;
    text-decoration: none;
    border: 1px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.tlc-button:hover {
    background-color: #e0e0e0;
    border-color: #999;
}

.tlc-button-primary {
    background-color: #0073aa;
    color: white;
    border-color: #0073aa;
}

.tlc-button-primary:hover {
    background-color: #005a87;
    border-color: #005a87;
}

.tlc-button-secondary {
    background-color: #666;
    color: white;
    border-color: #666;
}

.tlc-button-secondary:hover {
    background-color: #555;
    border-color: #555;
}

/* === TABLAS === */
.tlc-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background-color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.tlc-table th,
.tlc-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.tlc-table th {
    background-color: #f8f9fa;
    font-weight: bold;
    color: #333;
    border-bottom: 2px solid #dee2e6;
}

.tlc-table tbody tr:hover {
    background-color: #f5f5f5;
}

.tlc-table .tlc-debt {
    background-color: #ffebee;
}

.tlc-table .tlc-debt td {
    border-left: 4px solid #f44336;
}

.tlc-table .tlc-paid {
    background-color: #e8f5e8;
}

.tlc-table .tlc-paid td {
    border-left: 4px solid #4caf50;
}

.tlc-table .tlc-advance {
    background-color: #e3f2fd;
}

.tlc-table .tlc-advance td {
    border-left: 4px solid #2196f3;
}

.tlc-table .tlc-totals {
    background-color: #f0f0f0;
    font-weight: bold;
}

/* === ESTADO DE CUENTA === */
.tlc-account-statement {
    max-width: 1200px;
    margin: 0 auto;
}

.tlc-account-statement h3 {
    color: #333;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.tlc-summary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 30px 0;
}

.tlc-summary-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-left: 4px solid #0073aa;
}

.tlc-summary-card h4 {
    margin: 0 0 15px 0;
    color: #333;
}

.tlc-summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.tlc-summary-item:last-child {
    border-bottom: none;
}

.tlc-label {
    font-weight: 500;
    color: #555;
}

.tlc-amount {
    font-weight: bold;
    font-size: 16px;
}

.tlc-amount.tlc-debt {
    color: #d32f2f;
}

.tlc-amount.tlc-advance {
    color: #1976d2;
}

.tlc-payment-actions {
    background: #fff3cd;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #ffeaa7;
}

.tlc-status-ok {
    background: #d4edda;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.tlc-payment-history {
    margin-top: 30px;
}

.tlc-payment-history h4 {
    color: #333;
    margin-bottom: 15px;
}

/* === LOGIN FORM === */
.tlc-login-form {
    max-width: 400px;
    margin: 0 auto;
    padding: 30px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.tlc-login-form h3 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
}

/* === ESTADO DE PAGOS === */
.tlc-status {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
}

.tlc-status-pending {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.tlc-status-applied {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.tlc-status-rejected {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* === NOTIFICACIONES === */
.tlc-notice {
    padding: 15px;
    margin: 20px 0;
    border-radius: 4px;
    border-left: 4px solid #ddd;
}

.tlc-notice-success {
    background-color: #d4edda;
    border-left-color: #28a745;
    color: #155724;
}

.tlc-notice-error {
    background-color: #f8d7da;
    border-left-color: #dc3545;
    color: #721c24;
}

.tlc-notice-warning {
    background-color: #fff3cd;
    border-left-color: #ffc107;
    color: #856404;
}

.tlc-notice-info {
    background-color: #d1ecf1;
    border-left-color: #17a2b8;
    color: #0c5460;
}

/* === FORMULARIO DE PAGO === */
.tlc-payment-form {
    max-width: 600px;
    margin: 0 auto;
}

.tlc-payment-form h3 {
    color: #333;
    margin-bottom: 20px;
}

.tlc-info {
    background: #e9ecef;
    padding: 20px;
    border-radius: 8px;
    margin-top: 30px;
}

.tlc-info h4 {
    margin: 0 0 10px 0;
    color: #495057;
}

.tlc-info ul {
    margin: 0;
    padding-left: 20px;
}

.tlc-info li {
    margin-bottom: 5px;
    color: #6c757d;
}

/* === DASHBOARD ADMIN === */
.tlc-dashboard {
    margin: 20px 0;
}

.tlc-dashboard-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.tlc-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-left: 4px solid #0073aa;
}

.tlc-card h3 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 18px;
}

.tlc-stat {
    margin-bottom: 15px;
}

.tlc-stat-number {
    display: block;
    font-size: 28px;
    font-weight: bold;
    color: #0073aa;
    line-height: 1;
}

.tlc-stat-label {
    display: block;
    font-size: 14px;
    color: #666;
    margin-top: 5px;
}

.tlc-quick-actions {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.tlc-quick-actions h3 {
    margin: 0 0 20px 0;
    color: #333;
}

.tlc-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.tlc-recent-activity {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.tlc-recent-activity h3 {
    margin: 0 0 20px 0;
    color: #333;
}

/* === FILTROS === */
.tlc-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px 0;
    border-bottom: 1px solid #ddd;
}

.tlc-filters select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .tlc-summary {
        grid-template-columns: 1fr;
    }
    
    .tlc-dashboard-cards {
        grid-template-columns: 1fr;
    }
    
    .tlc-actions-grid {
        grid-template-columns: 1fr;
    }
    
    .tlc-page-header {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .tlc-table {
        font-size: 12px;
    }
    
    .tlc-table th,
    .tlc-table td {
        padding: 8px;
    }
}

/* === ANIMACIONES === */
@keyframes tlc-fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tlc-card,
.tlc-notice,
.tlc-summary-card {
    animation: tlc-fadeIn 0.3s ease-out;
}

/* === IMPRESIÓN === */
@media print {
    .tlc-button,
    .tlc-quick-actions,
    .tlc-page-header {
        display: none !important;
    }
    
    .tlc-card,
    .tlc-summary-card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}