/* Estilos personalizados para Condominio Jardines del Valle */

/* Estilos generales */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Estilos para avisos en banner */
.aviso-item {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.aviso-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

/* Estilos para cards */
.card {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    border: 1px solid rgba(0, 0, 0, 0.125);
    transition: box-shadow 0.15s ease-in-out;
}

.card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

/* Estilos para navegación */
.navbar {
    position: relative;
    z-index: 1030;
}

.navbar-brand {
    font-weight: bold;
    white-space: nowrap;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 1rem;
}

@media (max-width: 991px) {
    .navbar-brand {
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .navbar-brand {
        font-size: 0.85rem;
    }
}

.navbar-nav .nav-link {
    font-weight: 500;
    white-space: nowrap;
}

.navbar-nav .dropdown-menu .dropdown-item {
    font-size: 0.95rem;
}

.navbar-dark .navbar-nav .dropdown-menu {
    border: none;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.navbar-nav {
    flex-wrap: nowrap;
}

@media (max-width: 991px) {
    .navbar-nav .nav-link {
        font-size: 0.9rem;
        padding: 0.5rem 0.75rem;
    }
}

/* Estilos para botones */
.btn {
    font-weight: 500;
}

.btn-outline-primary:hover,
.btn-outline-success:hover,
.btn-outline-info:hover,
.btn-outline-warning:hover,
.btn-outline-danger:hover {
    transform: translateY(-1px);
    transition: transform 0.2s ease;
}

/* Estilos para tablas */
.table th {
    font-weight: 600;
    background-color: #f8f9fa;
}

.table-hover tbody tr:hover {
    background-color: rgba(0, 123, 255, 0.05);
}

/* Estilos para formularios */
.form-control:focus,
.form-select:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* Estilos para carruseles */
.carousel-item img,
.carousel-item video {
    object-fit: cover;
}

/* Estilos para badges */
.badge {
    font-weight: 500;
}

/* Estilos para iconos */
.fas, .far, .fab {
    margin-right: 0.25rem;
}

/* Estilos para alertas */
.alert {
    border-radius: 0.5rem;
}

/* Estilos para footer */
footer {
    margin-top: auto;
}

/* Estilos para responsive */
@media (max-width: 768px) {
    .card-body {
        padding: 1rem;
    }
    
    .table-responsive {
        font-size: 0.875rem;
    }
    
    .btn {
        font-size: 0.875rem;
    }
}

/* Estilos para animaciones */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Estilos para estadísticas */
.stats-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
}

.stats-card .card-body {
    padding: 1.5rem;
}

/* Estilos para galería de imágenes */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 0.5rem;
}

.gallery-item img {
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Estilos para encuestas */
.poll-option {
    border: 2px solid #e9ecef;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.poll-option:hover {
    border-color: #0d6efd;
    background-color: #f8f9fa;
}

.poll-option.selected {
    border-color: #0d6efd;
    background-color: #e7f3ff;
}

/* Estilos para eventos */
.event-date {
    background-color: #dc3545;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Estilos para mascotas */
.pet-type-icon {
    font-size: 1.5rem;
    margin-right: 0.5rem;
}

/* Estilos para avisos comerciales */
.commercial-card {
    border-left: 4px solid #0d6efd;
}

.commercial-card .card-title {
    color: #0d6efd;
    font-weight: 600;
}

/* Estilos para circulares */
.circular-card {
    border-left: 4px solid #ffc107;
}

.circular-card .card-title {
    color: #856404;
    font-weight: 600;
}

/* Estilos para gastos comunes */
.expense-card {
    border-left: 4px solid #17a2b8;
}

.expense-card .card-title {
    color: #0c5460;
    font-weight: 600;
}

/* Estilos para el panel de administración */
.admin-stats {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.admin-stats h2 {
    margin-bottom: 0;
    font-weight: 700;
}

.admin-stats p {
    margin-bottom: 0;
    opacity: 0.9;
}

/* Estilos para formularios de administración */
.admin-form {
    background-color: #f8f9fa;
    border-radius: 0.5rem;
    padding: 2rem;
    margin-bottom: 2rem;
}

.admin-form .form-label {
    font-weight: 600;
    color: #495057;
}

/* Estilos para mensajes de éxito y error */
.alert-success {
    background-color: #d1e7dd;
    border-color: #badbcc;
    color: #0f5132;
}

.alert-danger {
    background-color: #f8d7da;
    border-color: #f5c2c7;
    color: #842029;
}

.alert-info {
    background-color: #cff4fc;
    border-color: #b6effb;
    color: #055160;
}

.alert-warning {
    background-color: #fff3cd;
    border-color: #ffecb5;
    color: #664d03;
}

/* Estilos para botones de acción */
.action-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.action-buttons .btn {
    flex: 1;
    min-width: 120px;
}

/* Estilos para responsive en móviles */
@media (max-width: 576px) {
    .action-buttons {
        flex-direction: column;
    }
    
    .action-buttons .btn {
        width: 100%;
    }
    
    .card-body {
        padding: 0.75rem;
    }
    
    .table td, .table th {
        padding: 0.5rem;
    }
}

/* Estilos para loading */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Estilos para tooltips personalizados */
.custom-tooltip {
    position: relative;
    display: inline-block;
}

.custom-tooltip .tooltiptext {
    visibility: hidden;
    width: 200px;
    background-color: #555;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -100px;
    opacity: 0;
    transition: opacity 0.3s;
}

.custom-tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
} 