/* KUBO105 User Profile Form Styles */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&display=swap');

.kubo105-user-profile-container {
    font-family: 'Montserrat', sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Formularios individuales */
.kubo105-single-form {
    max-width: 600px;
}

.kubo105-profile-grid {
    display: grid;
    grid-template-columns: 55% 45%;
    gap: 30px;
    align-items: start;
}

.kubo105-profile-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.kubo105-profile-form {
    border: 1.5px solid #888;
    border-radius: 8px;
    padding: 24px;
    background: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.kubo105-form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.kubo105-form-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #333333;
    margin: 0;
}

.kubo105-edit-btn {
    font-size: 1rem !important;
    font-weight: 400 !important;
    color: #fab000 !important;
    background: none !important;
    border: none !important;
    text-decoration: underline !important;
    cursor: pointer !important;
    padding: 0 !important;
    transition: color 0.3s ease !important;
    margin-left: auto !important;
}

.kubo105-edit-btn:hover {
    color: #e09900 !important;
}

/* Nuevos estilos para campos con botones editar a la derecha */
.kubo105-field-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.kubo105-field-edit-btn {
    font-size: 0.875rem;
    font-weight: 400;
    color: #fab000;
    background: none;
    border: none;
    text-decoration: underline;
    cursor: pointer;
    padding: 0;
    transition: color 0.3s ease;
}

.kubo105-field-edit-btn:hover {
    color: #e09900;
}

.kubo105-form-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.kubo105-form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.kubo105-form-field label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #333333;
    margin-bottom: 4px;
}

.kubo105-form-field input,
.kubo105-form-field select,
.kubo105-form-field textarea {
    font-size: 1rem;
    font-weight: 600;
    color: #666666;
    padding: 12px 16px;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    background: #f8f9fa;
    transition: all 0.3s ease;
}

.kubo105-form-field input:focus,
.kubo105-form-field select:focus,
.kubo105-form-field textarea:focus {
    outline: none;
    border-color: #fab000;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(250, 176, 0, 0.1);
}

.kubo105-form-field input[readonly],
.kubo105-form-field select[disabled],
.kubo105-form-field textarea[readonly] {
    background: #f8f9fa;
    cursor: not-allowed;
    color: #666666;
}

.kubo105-form-field textarea {
    min-height: 80px;
    resize: vertical;
}

.kubo105-form-field input[type="password"] {
    letter-spacing: 2px;
}

/* Username feedback */
.kubo105-username-feedback {
    font-size: 0.75rem;
    padding: 4px 8px;
    border-radius: 4px;
    margin-top: 4px;
}

.kubo105-username-feedback.success {
    background: #d4edda;
    color: #155724;
    border-left: 3px solid #28a745;
}

.kubo105-username-feedback.error {
    background: #f8d7da;
    color: #721c24;
    border-left: 3px solid #dc3545;
}

.kubo105-username-feedback.checking {
    background: #fff3cd;
    color: #856404;
    border-left: 3px solid #fab000;
}

.kubo105-form-actions {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    justify-content: flex-end;
}

.kubo105-save-btn,
.kubo105-cancel-btn {
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid;
}

.kubo105-save-btn {
    background: #fab000;
    color: #ffffff;
    border-color: #fab000;
}

.kubo105-save-btn:hover {
    background: #e09900;
    border-color: #e09900;
}

.kubo105-cancel-btn {
    background: #fa010a;
    color: #ffffff;
    border-color: #fa010a;
}

.kubo105-cancel-btn:hover {
    background: #d60009;
    border-color: #d60009;
}

/* Custom Date Picker Styles - Mejorado */
.kubo105-date-picker-container {
    position: relative;
}

.kubo105-date-input {
    cursor: pointer;
    background: #ffffff !important;
}

.kubo105-date-input:not([readonly]) {
    cursor: text;
}

.kubo105-custom-calendar {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    padding: 16px;
    margin-top: 4px;
    min-width: 300px;
}

.kubo105-calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    gap: 8px;
}

.kubo105-calendar-nav {
    background: #fab000;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 16px;
    color: #ffffff;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-weight: 600;
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.kubo105-calendar-nav:hover {
    background: #e09900;
    transform: translateY(-1px);
}

.kubo105-calendar-title {
    font-weight: 700;
    color: #333333;
    font-size: 16px;
    flex: 1;
    text-align: center;
}

.kubo105-calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    margin-bottom: 12px;
}

.kubo105-calendar-weekdays div {
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    color: #666666;
    padding: 8px 4px;
    background: #f8f9fa;
    border-radius: 4px;
}

.kubo105-calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.kubo105-calendar-day {
    text-align: center;
    padding: 12px 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.2s ease;
    color: #333333;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.kubo105-calendar-day:hover {
    background: #fff3d9;
    color: #fab000;
    transform: translateY(-1px);
}

.kubo105-calendar-day.selected {
    background: #fab000;
    color: #ffffff;
    font-weight: 700;
}

.kubo105-calendar-day.other-month {
    color: #cccccc;
    background: transparent;
}

.kubo105-calendar-day.today {
    font-weight: 700;
    border: 2px solid #fab000;
    color: #fab000;
}

.kubo105-calendar-day.today.selected {
    color: #ffffff;
    border-color: #e09900;
}

/* Date validation feedback */
.kubo105-date-feedback {
    font-size: 0.75rem;
    padding: 4px 8px;
    border-radius: 4px;
    margin-top: 4px;
    display: none;
}

.kubo105-date-feedback.error {
    background: #f8d7da;
    color: #721c24;
    border-left: 3px solid #dc3545;
    display: block;
}

.kubo105-date-feedback.success {
    background: #d4edda;
    color: #155724;
    border-left: 3px solid #28a745;
    display: block;
}

/* Modal Styles */
.kubo105-password-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: all;
}

.kubo105-modal-content {
    background: #ffffff;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    pointer-events: all;
}

.kubo105-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #e5e5e5;
}

.kubo105-modal-header h4 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #333333;
    margin: 0;
}

.kubo105-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666666;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.kubo105-modal-close:hover {
    background: #f8f9fa;
    color: #333333;
}

.kubo105-modal-body {
    padding: 24px;
}

.kubo105-password-step {
    display: block;
}

.kubo105-password-step p {
    margin-bottom: 16px;
    color: #666666;
    line-height: 1.5;
}

.kubo105-btn {
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.kubo105-btn-primary {
    background: #fab000;
    color: #ffffff;
    border-color: #fab000;
}

.kubo105-btn-primary:hover {
    background: #e09900;
    border-color: #e09900;
}

.kubo105-btn-secondary {
    background: #fa010a;
    color: #ffffff;
    border-color: #fa010a;
}

.kubo105-btn-secondary:hover {
    background: #d60009;
    border-color: #d60009;
}

.kubo105-form-actions .kubo105-btn {
    margin: 0;
}

.kubo105-form-actions .kubo105-btn:not(:last-child) {
    margin-right: 12px;
}

/* Message Styles */
.kubo105-message {
    padding: 12px 16px;
    border-radius: 6px;
    margin: 16px 0;
    font-size: 0.875rem;
    font-weight: 500;
    display: none;
    animation: slideIn 0.3s ease;
}

.kubo105-message.success {
    background: #d4edda;
    color: #155724;
    border-left: 4px solid #28a745;
}

.kubo105-message.error {
    background: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

.kubo105-message.info {
    background: #fff3cd;
    color: #856404;
    border-left: 4px solid #fab000;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.kubo105-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

.kubo105-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #fab000;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 1000;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .kubo105-profile-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .kubo105-single-form {
        max-width: 100%;
    }

    .kubo105-profile-form {
        padding: 16px;
    }

    .kubo105-form-title {
        font-size: 1.125rem;
    }

    .kubo105-field-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .kubo105-field-edit-btn {
        align-self: flex-end;
    }

    .kubo105-modal-content {
        width: 95%;
        margin: 0 10px;
    }

    .kubo105-modal-header,
    .kubo105-modal-body {
        padding: 16px;
    }

    .kubo105-form-actions {
        flex-direction: column;
    }

    .kubo105-form-actions .kubo105-btn {
        width: 100%;
        margin: 0 0 8px 0;
    }

    .kubo105-form-actions .kubo105-btn:last-child {
        margin-bottom: 0;
    }

    .kubo105-custom-calendar {
        left: -20px;
        right: -20px;
        min-width: auto;
    }

    .kubo105-calendar-header {
        flex-wrap: wrap;
        gap: 4px;
    }

    .kubo105-calendar-nav {
        padding: 6px 8px;
        font-size: 14px;
        min-width: 32px;
        height: 32px;
    }
}

@media (max-width: 480px) {
    .kubo105-user-profile-container {
        padding: 12px;
    }

    .kubo105-profile-form {
        padding: 12px;
    }

    .kubo105-form-field input,
    .kubo105-form-field select,
    .kubo105-form-field textarea {
        font-size: 14px;
        padding: 10px 12px;
    }

    .kubo105-calendar-day {
        padding: 8px 4px;
        min-height: 32px;
        font-size: 12px;
    }

    .kubo105-calendar-weekdays div {
        font-size: 11px;
        padding: 6px 4px;
    }
} 