/* ==================== GESCON 5.0 MARITIMA PRO v3.5.0 ==================== */

/* ==================== ESTILOS GENERALES ==================== */
.gmaritima-container {
    max-width: 95%;
    margin: 20px auto;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}



















/* ==================== BOTONES ==================== */
.gmaritima-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    outline: none;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.gmaritima-btn span {
    font-size: 18px;
}

.gmaritima-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

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

.gmaritima-btn-primary {
    background: linear-gradient(135deg, #4CAF50 0%, #388E3C 100%);
    color: white;
}

.gmaritima-btn-secondary {
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    color: white;
}

.gmaritima-btn-info {
    background: linear-gradient(135deg, #00BCD4 0%, #0097A7 100%);
    color: white;
}

.gmaritima-btn-success {
    background: linear-gradient(135deg, #8BC34A 0%, #689F38 100%);
    color: white;
}

.gmaritima-btn-warning {
    background: linear-gradient(135deg, #FFC107 0%, #FFA000 100%);
    color: #333;
}



.gmaritima-btn-instructions {
    background: linear-gradient(135deg, #FF9800 0%, #F57C00 100%);
    color: white;
}

.gmaritima-btn-calendar {
    background: linear-gradient(135deg, #1e3c72 0%, #12264f 100%);
    color: white;
}

/* ==================== CONTENEDORES DE BOTONES ==================== */
.gmaritima-top-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
    flex-wrap: wrap;
    gap: 15px;
}

.gmaritima-button-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.gmaritima-export-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.gmaritima-home-button-container {
    text-align: center;
    margin: 25px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

/* ==================== TABLA ==================== */
.gmaritima-table-container {
    margin: 30px 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    background: white;
    border: 1px solid #e9ecef;
}

.gmaritima-table-wrapper {
    overflow-x: auto;
    max-width: 100%;
}

.gmaritima-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    min-width: 1400px;
}

.gmaritima-table th {
    background: linear-gradient(135deg, #1e3c72 0%, #12264f 100%);
    color: white;
    padding: 12px 10px;
    text-align: center;
    font-weight: 600;
    border: 1px solid #1e3c72;
    position: sticky;
    top: 0;
    z-index: 10;
    white-space: nowrap;
}

.gmaritima-table td {
    padding: 10px 8px;
    border: 1px solid #e0e0e0;
    text-align: center;
    vertical-align: middle;
    background: white;
}

.gmaritima-table tbody tr:nth-child(even) td {
    background: #f8f9fa;
}

.gmaritima-table tbody tr:hover td {
    background: #e3f2fd;
    transition: background 0.2s;
}

.gmaritima-id {
    font-weight: 700;
    color: #1e3c72;
}

/* ==================== BADGES ==================== */
.gmaritima-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.badge-mort {
    background: #ffebee;
    color: #c62828;
}

.badge-sense-mort {
    background: #e8f5e8;
    color: #2e7d32;
}

.badge-categoria {
    background: #e3f2fd;
    color: #1565c0;
}

.badge-provincia {
    background: #f3e5f5;
    color: #7b1fa2;
}

/* Tipos de playa */
.tipus-restric {
    background: #ffebee !important;
    color: #c62828;
    font-weight: 600;
}

.tipus-parcial {
    background: #e3f2fd !important;
    color: #1565c0;
    font-weight: 600;
}

/* ==================== ACTION BUTTONS ==================== */
.gmaritima-action-buttons {
    display: flex;
    gap: 5px;
    justify-content: center;
}

.gmaritima-btn-action {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 6px;
    background: #f8f9fa;
    color: #495057;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.gmaritima-btn-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.btn-editar-maritima:hover {
    background: #2196F3;
    color: white;
}

.btn-eliminar-maritima:hover {
    background: #f44336;
    color: white;
}

/* ==================== TABLE FOOTER ==================== */
.gmaritima-table-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

.gmaritima-total {
    font-size: 14px;
    color: #666;
}

.gmaritima-total strong {
    color: #1e3c72;
    font-weight: bold;
    margin-left: 5px;
    font-size: 16px;
}

.gmaritima-table-actions {
    display: flex;
    gap: 10px;
}

/* ==================== EMPTY STATE ==================== */
.gmaritima-empty-state {
    text-align: center;
    padding: 60px 20px;
}

.gmaritima-empty-icon {
    font-size: 48px;
    color: #e0e0e0;
    margin-bottom: 20px;
}

.gmaritima-empty-state h3 {
    color: #666;
    margin-bottom: 10px;
    font-size: 20px;
}

.gmaritima-empty-state p {
    color: #999;
    margin-bottom: 30px;
}

/* ==================== MODAL ==================== */
.gmaritima-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 9999;
    overflow-y: auto;
    animation: fadeIn 0.3s ease;
}

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

.gmaritima-modal-content {
    background: white;
    margin: 50px auto;
    width: 90%;
    max-width: 1000px;
    border-radius: 8px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    animation: slideIn 0.4s ease;
    overflow: hidden;
}

.gmaritima-modal-calendario {
    max-width: 1100px;
}

@keyframes slideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.gmaritima-modal-header {
    background: linear-gradient(135deg, #1e3c72 0%, #12264f 100%);
    color: white;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.gmaritima-modal-header-calendario {
    background: linear-gradient(135deg, #1e3c72 0%, #12264f 100%);
}

.gmaritima-modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.gmaritima-modal-close {
    font-size: 28px;
    cursor: pointer;
    transition: color 0.3s;
    line-height: 1;
    opacity: 0.8;
}

.gmaritima-modal-close:hover {
    color: #ffeb3b;
    opacity: 1;
    transform: scale(1.1);
}

.gmaritima-modal-body {
    padding: 30px;
    max-height: calc(100vh - 200px);
    overflow-y: auto;
}

/* ==================== FORMULARIO ==================== */
.gmaritima-form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.gmaritima-form-group {
    flex: 1;
    min-width: 200px;
}

.gmaritima-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 13px;
}

.gmaritima-form-group label::after {
    content: " *";
    color: #f44336;
    opacity: 0.8;
}

.gmaritima-input,
.gmaritima-select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s;
    box-sizing: border-box;
    background: white;
}

.gmaritima-input:focus,
.gmaritima-select:focus {
    outline: none;
    border-color: #1e3c72;
    box-shadow: 0 0 0 3px rgba(30,60,114,0.1);
}

.gmaritima-input[readonly],
.gmaritima-select[readonly],
.gmaritima-input:disabled,
.gmaritima-select:disabled {
    background-color: #e2e8f0 !important;
    color: #475569 !important;
    cursor: not-allowed !important;
    border-color: #cbd5e1 !important;
}

/* Ocultar asteriscos en el formulario fuera de plazo (solicitud de modificación) */
.gmaritima-fora-termini .gmaritima-form-group label::after {
    content: "" !important;
    display: none !important;
}

.gmaritima-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #e9ecef;
}

/* ==================== CALENDARIO ==================== */
.gmaritima-calendar-header {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.gmaritima-calendar-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #1e3c72;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.gmaritima-calendar-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gmaritima-calendar-user {
    flex: 1;
    text-align: center;
    font-size: 24px;
    font-weight: 800;
    color: #1e3c72;
    letter-spacing: 1px;
}

.gmaritima-calendar-year {
    font-size: 32px;
    font-weight: 900;
    color: #1e3c72;
    padding: 0 20px;
}

.gmaritima-calendar-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.gmaritima-calendar-month {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.gmaritima-month-title {
    background: #1e3c72;
    color: white;
    text-align: center;
    padding: 10px;
    font-weight: 700;
    font-size: 14px;
}

.gmaritima-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: #f8f9fa;
    padding: 8px 0;
    font-size: 11px;
    font-weight: 700;
    text-align: center;
    border-bottom: 1px solid #dee2e6;
}

.gmaritima-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    padding: 5px;
    background: white;
}

.gmaritima-day {
    text-align: center;
    padding: 6px 0;
    font-size: 11px;
    font-weight: 500;
    border-radius: 4px;
    transition: all 0.2s;
}

.gmaritima-day.weekend {
    color: #f44336;
}

.gmaritima-day.concurso {
    background: #1e3c72;
    color: white;
    font-weight: 700;
    box-shadow: 0 2px 4px rgba(30,60,114,0.3);
}

.gmaritima-day.empty {
    background: none;
}

.gmaritima-calendar-resumen {
    margin: 25px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #1e3c72;
}

.gmaritima-calendar-resumen h4 {
    margin: 0 0 15px 0;
    color: #1e3c72;
    font-size: 18px;
    font-weight: 700;
}

.gmaritima-resumen-item {
    background: linear-gradient(135deg, #1e3c72 0%, #12264f 100%);
    color: white;
    padding: 12px 15px;
    margin-bottom: 8px;
    border-radius: 8px;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}

.gmaritima-resumen-item:hover {
    transform: translateX(5px);
}

.gmaritima-calendar-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 2px solid #e9ecef;
}

/* ==================== EMPTY CALENDAR ==================== */
.gmaritima-empty-calendar {
    text-align: center;
    padding: 60px 20px;
}

.gmaritima-empty-calendar .gmaritima-empty-icon {
    font-size: 100px;
    color: #1e3c72;
    opacity: 0.5;
    margin-bottom: 20px;
}

.gmaritima-empty-calendar h3 {
    color: #1e3c72;
    font-size: 24px;
    margin-bottom: 30px;
}

/* ==================== LOADER ==================== */
.gmaritima-loader {
    text-align: center;
    padding: 60px;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #1e3c72;
    border-radius: 50%;
    margin: 0 auto 20px;
    animation: spin 1s linear infinite;
}

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

/* ==================== INSTRUCCIONES ==================== */
.gmaritima-instrucciones {
    padding: 10px;
}

.instruccio-section {
    margin-bottom: 25px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #9C27B0;
}

.instruccio-section h4 {
    margin: 0 0 10px 0;
    color: #9C27B0;
    font-size: 16px;
    font-weight: 700;
}

.instruccio-note {
    background: #e3f2fd;
    padding: 15px 20px;
    border-radius: 8px;
    border-left: 4px solid #1e3c72;
    color: #1e3c72;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1200px) {
    .gmaritima-table {
        font-size: 12px;
    }
    
    .gmaritima-table th,
    .gmaritima-table td {
        padding: 8px 6px;
    }
    
    .gmaritima-calendar-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .gmaritima-top-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .gmaritima-button-group,
    .gmaritima-export-buttons {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .gmaritima-container {
        padding: 15px;
    }
    
    
    
    
    
    
    
    .gmaritima-top-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .gmaritima-export-buttons {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .gmaritima-form-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .gmaritima-form-group {
        min-width: 100%;
    }
    
    .gmaritima-table {
        font-size: 11px;
    }
    
    .gmaritima-modal-content {
        width: 95%;
        margin: 20px auto;
    }
    
    .gmaritima-calendar-grid {
        grid-template-columns: 1fr;
    }
    
    .gmaritima-calendar-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .gmaritima-calendar-user {
        font-size: 20px;
    }
    
    .gmaritima-calendar-year {
        font-size: 28px;
    }
    
    .gmaritima-calendar-actions {
        flex-direction: column;
    }
}
/* ==================== PREMIUM REDESIGN CABECERA ==================== */
.gmaritima-header {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.4);
    color: white;
    padding: 0;
    border-radius: 12px;
    margin-bottom: 25px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.gmaritima-header-bg-glow {
    position: absolute;
    top: -50%;
    left: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.15) 0%, rgba(14, 165, 233, 0) 70%);
    z-index: 0;
    pointer-events: none;
    animation: glow-pulse 8s infinite alternate ease-in-out;
}

@keyframes glow-pulse {
    0% { transform: scale(1) translate(0, 0); }
    100% { transform: scale(1.1) translate(20px, 20px); }
}

.gmaritima-header-content-wrapper {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 30px;
}

.gmaritima-header-inner {
    display: flex;
    align-items: center;
    gap: 20px;
}

.gmaritima-header-logo-container {
    padding-right: 20px;
    border-right: 1px solid rgba(255, 255, 255, 0.15);
}

.fcpec-logo-header {
    height: 55px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
    transition: transform 0.3s ease;
}

.fcpec-logo-header:hover {
    transform: scale(1.05);
}

.gmaritima-header-title-container h1 {
    margin: 0 0 4px 0 !important;
    font-size: 24px !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px !important;
    color: #ffffff !important;
    text-shadow: none !important;
    border: none !important;
    padding: 0 !important;
    background: transparent !important;
}

.gmaritima-subtitle {
    margin: 0;
    font-size: 13px;
    color: #94a3b8;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.gmaritima-header-widgets {
    display: flex;
    align-items: center;
    gap: 15px;
}

.gmaritima-widget-system-status {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #34d399;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.status-dot {
    width: 8px;
    height: 8px;
    background-color: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
}

.gmaritima-user-glass-widget {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 6px 16px 6px 6px;
    border-radius: 30px;
    transition: background 0.2s;
}

.gmaritima-user-glass-widget:hover {
    background: rgba(255, 255, 255, 0.1);
}

.club-avatar-mini {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.user-glass-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.user-glass-label {
    font-size: 10px;
    color: #94a3b8;
    text-transform: uppercase;
    line-height: 1;
    margin-bottom: 2px;
}

.user-glass-name {
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
    line-height: 1;
}

/* ==================== PREMIUM REDESIGN FOOTER ==================== */
.gmaritima-status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    border-radius: 0 0 8px 8px;
    margin: 20px -20px -20px -20px;
}

.status-bar-left, .status-bar-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.status-bar-btn-home {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #475569;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 6px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    transition: all 0.2s;
}

.status-bar-btn-home:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.status-bar-text {
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
}

.status-dot-pulse-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
}

.status-dot-pulse {
    width: 8px;
    height: 8px;
    background-color: #10b981;
    border-radius: 50%;
    position: relative;
}

.status-dot-pulse::after {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 50%;
    border: 2px solid #10b981;
    animation: pulse-ring 2s infinite cubic-bezier(0.215, 0.61, 0.355, 1);
}

@keyframes pulse-ring {
    0% { transform: scale(0.5); opacity: 0; }
    50% { opacity: 0.5; }
    100% { transform: scale(1.5); opacity: 0; }
}

@media (max-width: 768px) {
    .gmaritima-header-content-wrapper {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    
    .gmaritima-header-widgets {
        width: 100%;
        justify-content: space-between;
    }
}