/**
 * Joyson Area Riservata - Frontend Styles
 * Version: 2.0.4
 * Author: Silicio Visual
 * 
 * All styles are scoped under .joyson-area-riservata-plugin to prevent conflicts
 * with other themes and plugins. No external dependencies.
 */

/* ==========================================================================
   PLUGIN ISOLATION WRAPPER
   ========================================================================== */

/* Core plugin container that isolates all styles */
.joyson-area-riservata-plugin {
    /* Reset potential theme interference */
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    background-color: #191919;
    font-family: 'Raleway', sans-serif;
}

.joyson-area-riservata-plugin *,
.joyson-area-riservata-plugin *::before,
.joyson-area-riservata-plugin *::after {
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
}

/* ==========================================================================
   LOGIN PAGE STYLES
   ========================================================================== */

.joyson-area-riservata-plugin .joyson-login-container {
    min-height: 100vh;
    background: #191919;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Raleway', sans-serif;
    padding: 20px;
    box-sizing: border-box;
    margin: 0;
    position: relative;
    z-index: 1;
}

.joyson-area-riservata-plugin .joyson-login-form-wrapper {
    margin: 0 auto;
    padding: 20px;
}

.joyson-area-riservata-plugin .joyson-login-title {
    color: #ffffff;
    text-align: left;
    margin: 0 0 16px 0;
    font-size: 80px;
    font-weight: 300;
    line-height: 1;
    letter-spacing: -2px;
}

.joyson-area-riservata-plugin .joyson-login-description {
    color: #cccccc;
    font-size: 16px;
    line-height: 1.5;
    margin: 0 0 48px 0;
    font-weight: 400;
    letter-spacing: 0.2px;
}

/* ==========================================================================
   LOGIN FORM STYLES
   ========================================================================== */

.joyson-area-riservata-plugin .joyson-login-form {
    max-width: 500px;
    margin: 0 auto 32px;
    background: transparent;
    border: 1px solid #ffffff;
    border-radius: 0;
    padding: 2rem 1rem;
}

.joyson-area-riservata-plugin .joyson-login-form .joyson-form-group {
    margin-bottom: 32px;
    position: relative;
}

.joyson-area-riservata-plugin .joyson-login-form .joyson-form-group label {
    display: block;
    color: #ffffff;
    margin-bottom: 8px;
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 0.2px;
    margin-top: 0.5rem;
}

.joyson-area-riservata-plugin .joyson-login-form input[type="text"],
.joyson-area-riservata-plugin .joyson-login-form input[type="password"],
.joyson-area-riservata-plugin .joyson-login-form input[type="email"] {
    width: 100%;
    padding: 16px 0;
    border: none;
    border-bottom: 1px solid #333333;
    background: transparent;
    color: #ffffff;
    border-radius: 0;
    font-size: 16px;
    transition: border-bottom-color 0.3s ease;
    box-sizing: border-box;
    outline: none;
    font-family: inherit;
}

.joyson-area-riservata-plugin .joyson-login-form input[type="text"]:focus,
.joyson-area-riservata-plugin .joyson-login-form input[type="password"]:focus,
.joyson-area-riservata-plugin .joyson-login-form input[type="email"]:focus {
    outline: none;
    border-bottom-color: #ffffff;
    box-shadow: none;
}

.joyson-area-riservata-plugin .joyson-login-form input::placeholder {
    color: #666666;
    opacity: 1;
    font-size: 16px;
}

.joyson-area-riservata-plugin .joyson-remember-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Bootstrap checkbox adapted for dark theme */
.joyson-area-riservata-plugin .joyson-remember-group .form-check {
    display: flex;
    align-items: center;
}

.joyson-area-riservata-plugin .joyson-remember-group .form-check-input {
    width: 1em;
    height: 1em;
    margin-right: 0.75rem;
    background-color: transparent;
    border: 2px solid white;
    border-radius: 0;
}

.joyson-area-riservata-plugin .joyson-remember-group .form-check-input:checked {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.joyson-area-riservata-plugin .joyson-remember-group .form-check-label {
    color: #ffffff;
    cursor: pointer;
    font-size: 16px;
}

.joyson-area-riservata-plugin .joyson-remember-group .joyson-login-btn {
    background: transparent;
    color: #ffffff;
    border: 1px solid #ffffff;
    border-radius: 32px;
    font-size: 16px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 1rem;
    margin: 0;
    letter-spacing: 0.2px;
    width: auto;
    font-family: inherit;
}

.joyson-area-riservata-plugin .joyson-remember-group .joyson-login-btn:hover {
    background: #ffffff;
    color: #1a1a1a;
    transform: none;
    text-decoration: none;
}

.joyson-area-riservata-plugin .joyson-remember-group .joyson-login-btn:disabled {
    background: transparent;
    color: #666666;
    border-color: #666666;
    cursor: not-allowed;
    transform: none;
}

.joyson-area-riservata-plugin .joyson-login-footer {
    max-width: 500px;
    margin: 0 auto;
}

.joyson-area-riservata-plugin .joyson-forgot-password {
    text-align: left;
    margin-top: 24px;
}

.joyson-area-riservata-plugin .joyson-forgot-link {
    color: #ffffff;
    text-decoration: underline;
    font-size: 16px;
    transition: color 0.3s ease;
    letter-spacing: 0.2px;
}

.joyson-area-riservata-plugin .joyson-forgot-link:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* Hide custom checkbox styles for login form */
.joyson-area-riservata-plugin .joyson-login-form .joyson-checkbox-custom {
    display: none;
}

/* ==========================================================================
   DASHBOARD FORM STYLES (Keep existing styles for dashboard)
   ========================================================================== */

.joyson-area-riservata-plugin .joyson-dashboard-form .joyson-form-group {
    margin-bottom: 20px;
}

.joyson-area-riservata-plugin .joyson-dashboard-form .joyson-form-group label {
    display: block;
    color: #bdc3c7;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: normal;
}

.joyson-area-riservata-plugin .joyson-dashboard-form input[type="text"],
.joyson-area-riservata-plugin .joyson-dashboard-form input[type="password"],
.joyson-area-riservata-plugin .joyson-dashboard-form input[type="email"],
.joyson-area-riservata-plugin .joyson-dashboard-form textarea,
.joyson-area-riservata-plugin .joyson-dashboard-form select {
    width: 100%;
    padding: 12px 15px;
    background: transparent;
    border: 1px solid white;
    border-radius: 0;
    color: white;
    font-size: 14px;
    box-sizing: border-box;
    font-family: inherit;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.joyson-area-riservata-plugin .joyson-dashboard-form input:focus,
.joyson-area-riservata-plugin .joyson-dashboard-form textarea:focus,
.joyson-area-riservata-plugin .joyson-dashboard-form select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.3);
}

.joyson-area-riservata-plugin .joyson-dashboard-form input::placeholder,
.joyson-area-riservata-plugin .joyson-dashboard-form textarea::placeholder {
    color: #7f8c8d;
    opacity: 1;
}

.joyson-area-riservata-plugin .joyson-dashboard-form input[readonly] {
    background-color: #2c2c2c;
    color: #888;
    cursor: not-allowed;
}

.joyson-area-riservata-plugin .joyson-dashboard-form select option {
    background: #2c2c2c;
    color: white;
}

/* ==========================================================================
   CUSTOM CHECKBOX STYLES
   ========================================================================== */

.joyson-area-riservata-plugin .joyson-checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.95rem;
    color: #ecf0f1;
    user-select: none;
}

.joyson-area-riservata-plugin .joyson-checkbox-label input[type="checkbox"] {
    display: none;
}

.joyson-area-riservata-plugin .joyson-checkbox-custom {
    width: 18px;
    height: 18px;
    border: 1px solid #576574;
    margin-right: 12px;
    position: relative;
    background: transparent;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.joyson-area-riservata-plugin .joyson-checkbox-label input[type="checkbox"]:checked + .joyson-checkbox-custom {
    background: #74b9ff;
    border-color: #74b9ff;
}

.joyson-area-riservata-plugin .joyson-checkbox-label input[type="checkbox"]:checked + .joyson-checkbox-custom::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

/* ==========================================================================
   BUTTON STYLES
   ========================================================================== */

.joyson-area-riservata-plugin .joyson-login-btn,
.joyson-area-riservata-plugin .joyson-save-btn {
    width: auto;
    padding: 12px;
    background: #454545;
    color: white;
    border: 1px solid white;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    margin-bottom: 15px;
    transition: background-color 0.3s ease, transform 0.1s ease;
    font-family: inherit;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    border-radius: 32px;
}

.joyson-area-riservata-plugin .joyson-login-btn:hover,
.joyson-area-riservata-plugin .joyson-save-btn:hover {
    background: #2980b9;
    text-decoration: none;
}

.joyson-area-riservata-plugin .joyson-login-btn:active,
.joyson-area-riservata-plugin .joyson-save-btn:active {
    transform: translateY(1px);
}

/* ==========================================================================
   LINK STYLES
   ========================================================================== */

.joyson-area-riservata-plugin .joyson-forgot-password {
    text-align: left;
}

.joyson-area-riservata-plugin .joyson-forgot-link {
    color: #ffffff;
    text-decoration: underline;
    font-size: 16px;
    transition: color 0.3s ease;
}

.joyson-area-riservata-plugin .joyson-forgot-link:hover {
    text-decoration: underline;
    color: #ffffff;
}

/* ==========================================================================
   MESSAGE STYLES WITH POP ANIMATIONS
   ========================================================================== */

.joyson-area-riservata-plugin .joyson-messages {
    margin-top: 20px;
    position: relative;
    min-height: 20px;
}

/* Fixed Position Messages */
.joyson-area-riservata-plugin .joyson-messages-fixed {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    max-width: 400px;
    margin: 0;
    min-height: 0;
    animation: slideInFromRight 0.3s ease-out;
}

@keyframes slideInFromRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Auto-hide animation for fixed messages */
.joyson-area-riservata-plugin .joyson-messages-fixed .auto-hide {
    animation: fadeOut 0.5s ease-in 4.5s forwards;
}

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

/* Fixed message styling */
.joyson-area-riservata-plugin .joyson-messages-fixed .joyson-message-success,
.joyson-area-riservata-plugin .joyson-messages-fixed .joyson-message-error {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    word-wrap: break-word;
}

.joyson-area-riservata-plugin .joyson-messages-fixed .joyson-message-close {
    transition: opacity 0.2s ease;
}

.joyson-area-riservata-plugin .joyson-messages-fixed .joyson-message-close:hover {
    opacity: 1 !important;
}

/* Responsive design for fixed messages */
@media (max-width: 768px) {
    .joyson-area-riservata-plugin .joyson-messages-fixed {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
}

/* Message Base Styling - Simple Text Only */
.joyson-area-riservata-plugin .joyson-message {
    padding: 10px 0;
    margin-bottom: 15px;
    font-weight: 500;
    text-align: center;
}

/* Error Message Styling - Red Text Only */
.joyson-area-riservata-plugin .joyson-message-error {
    color: #e74c3c;
}

/* Success Message Styling - Green Text Only */  
.joyson-area-riservata-plugin .joyson-message-success {
    color: #27ae60;
}

/* Legacy support for old message classes */
.joyson-area-riservata-plugin .joyson-messages .success {
    background: rgba(46, 204, 113, 0.1);
    border: 1px solid #2ecc71;
    color: #2ecc71;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 4px;
}

.joyson-area-riservata-plugin .joyson-messages .error {
    background: rgba(231, 76, 60, 0.1);
    border: 1px solid #e74c3c;
    color: #e74c3c;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 4px;
}

/* ==========================================================================
   DASHBOARD CONTAINER
   ========================================================================== */

.joyson-area-riservata-plugin .joyson-dashboard-container {
    display: flex;
    min-height: 100vh;
    background: #212121;
    font-family: 'Raleway', sans-serif;
    position: relative;
    z-index: 1;
    margin: 0;
    color: #ffffff;
}

/* ==========================================================================
   SIDEBAR STYLES
   ========================================================================== */

.joyson-area-riservata-plugin .joyson-sidebar {
    width: 250px;
    background: #292929;
    padding: 32px 0;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.joyson-area-riservata-plugin .joyson-dashboard-title {
    color: #ffffff;
    font-size: 24px;
    font-weight: 500;
    margin: 0 0 32px;
    padding: 0 24px;
    letter-spacing: 0.2px;
}

.joyson-area-riservata-plugin .joyson-sidebar-nav {
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: center;
    padding: 0;
}

.joyson-area-riservata-plugin .joyson-sidebar-link {
    color: #cccccc;
    text-decoration: none;
    font-size: 16px;
    padding: 12px 24px;
    transition: color 0.3s ease;
    letter-spacing: 0.2px;
    display: block;
    font-weight: 600;
}

.joyson-area-riservata-plugin .joyson-sidebar-link:hover {
    color: #ffffff;
}

.joyson-area-riservata-plugin .joyson-sidebar-link.active {
    color: #ffffff;
    background: #7AA2C4;
}

/* ==========================================================================
   MAIN CONTENT AREA
   ========================================================================== */

.joyson-area-riservata-plugin .joyson-main-content {
    padding: 40px;
    flex: 1;
    background: #212121;
    min-height: 100vh;
    padding-left: 286px;
    box-sizing: border-box;
}

.joyson-area-riservata-plugin .joyson-tab-content {
    display: none;
}

.joyson-area-riservata-plugin .joyson-tab-content.active {
    display: block;
    animation: joysonFadeIn 0.3s ease-in;
}

@keyframes joysonFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   FORM SECTIONS
   ========================================================================== */

.joyson-area-riservata-plugin .joyson-dashboard-form {
    max-width: 600px;
}

.joyson-area-riservata-plugin .joyson-section-title {
    color: #ffffff;
    font-size: 18px;
    font-weight: 500;
    margin: 30px 0 20px;
}

.joyson-area-riservata-plugin .joyson-section-description {
    color: #bdc3c7;
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0 0 20px 0;
}

.joyson-area-riservata-plugin .joyson-form-actions {
    margin-top: 30px;
    text-align: right;
}

.joyson-area-riservata-plugin .joyson-dashboard-section {
    margin-bottom: 40px;
}

.joyson-area-riservata-plugin .joyson-dashboard-section h2 {
    color: #ffffff;
    font-size: 1.4rem;
    font-weight: 500;
    margin: 0 0 15px 0;
}

.joyson-area-riservata-plugin .joyson-dashboard-section p {
    color: #bdc3c7;
    line-height: 1.5;
    margin: 0 0 15px 0;
}

/* ==========================================================================
   CUSTOM TOGGLE SWITCHES (Bootstrap-style but isolated)
   ========================================================================== */

.joyson-area-riservata-plugin .joyson-form-switch {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.joyson-area-riservata-plugin .joyson-form-switch-input {
    width: 3rem;
    height: 1.5rem;
    border-radius: 1rem;
    background-color: #5a5a5a;
    border: none;
    cursor: pointer;
    position: relative;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    transition: background-color 0.3s ease;
    margin-right: 12px;
}

.joyson-area-riservata-plugin .joyson-form-switch-input:checked {
    background-color: #5a9fd4;
}

.joyson-area-riservata-plugin .joyson-form-switch-input:focus {
    outline: none;
    box-shadow: 0 0 0 0.25rem rgba(90, 159, 212, 0.25);
}

.joyson-area-riservata-plugin .joyson-form-switch-input::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #ffffff;
    transition: transform 0.3s ease;
    transform: translateX(0);
}

.joyson-area-riservata-plugin .joyson-form-switch-input:checked::before {
    transform: translateX(24px);
}

.joyson-area-riservata-plugin .joyson-form-switch-label {
    color: #cccccc;
    font-size: 0.95rem;
    cursor: pointer;
    user-select: none;
}

/* ==========================================================================
   BOOTSTRAP-STYLE TAB SYSTEM (ISOLATED)
   ========================================================================== */

.joyson-area-riservata-plugin .joyson-nav-tabs {
    display: flex;
    flex-direction: column;
    list-style: none;
    margin: 0;
    padding: 0;
    border: none;
}

.joyson-area-riservata-plugin .joyson-nav-item {
    margin: 0;
    padding: 0;
}

.joyson-area-riservata-plugin .joyson-nav-link {
    display: block;
    padding: 15px 20px;
    color: #cccccc;
    text-decoration: none;
    border-bottom: 1px solid #444;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    background: transparent;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
}

.joyson-area-riservata-plugin .joyson-nav-link:hover {
    background: #444;
    color: #ffffff;
    text-decoration: none;
}

.joyson-area-riservata-plugin .joyson-nav-link.active {
    background: #5a9fd4;
    color: #ffffff;
}

.joyson-area-riservata-plugin .joyson-nav-link.logout-link {
    color: #e74c3c;
    border-top: 1px solid #444;
    margin-top: 10px;
}

.joyson-area-riservata-plugin .joyson-nav-link.logout-link:hover {
    background: #e74c3c;
    color: #ffffff;
}

.joyson-area-riservata-plugin .joyson-tab-content-container {
    padding: 0;
    margin: 0;
}

.joyson-area-riservata-plugin .joyson-tab-pane {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.joyson-area-riservata-plugin .joyson-tab-pane.show {
    display: block;
}

.joyson-area-riservata-plugin .joyson-tab-pane.active {
    opacity: 1;
}

.joyson-area-riservata-plugin .joyson-tab-pane.fade {
    transition: opacity 0.15s linear;
}



/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

@media (max-width: 768px) {
    .joyson-area-riservata-plugin .joyson-login-form-wrapper {
        max-width: 100%;
        padding: 20px;
    }

    .joyson-area-riservata-plugin .joyson-login-title {
        font-size: 48px;
        margin-bottom: 12px;
        letter-spacing: -1px;
    }

    .joyson-area-riservata-plugin .joyson-login-description {
        font-size: 14px;
        margin-bottom: 32px;
    }

    .joyson-area-riservata-plugin .joyson-login-form {
        padding: 32px 24px;
    }

    .joyson-area-riservata-plugin .joyson-remember-group {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
    }

    .joyson-area-riservata-plugin .joyson-remember-group .joyson-login-btn {
        width: 100%;
        text-align: center;
    }

    .joyson-area-riservata-plugin .joyson-dashboard-container {
        flex-direction: column;
    }

    .joyson-area-riservata-plugin .joyson-sidebar {
        position: relative;
        width: 100%;
        height: auto;
        order: 1;
    }

    .joyson-area-riservata-plugin .joyson-main-content {
        margin-left: 0;
        width: 100%;
        padding: 20px;
        order: 2;
    }

    .joyson-area-riservata-plugin .joyson-sidebar-nav {
        display: flex;
        overflow-x: auto;
    }

    .joyson-area-riservata-plugin .joyson-sidebar-link {
        white-space: nowrap;
        flex-shrink: 0;
        border-right: 1px solid #444;
        border-bottom: none;
    }

    .joyson-area-riservata-plugin .joyson-sidebar-link:last-child {
        border-right: none;
    }

    .joyson-area-riservata-plugin .joyson-dashboard-form {
        max-width: none;
    }


}

@media (max-width: 480px) {
    .joyson-area-riservata-plugin .joyson-login-container {
        padding: 15px;
    }

    .joyson-area-riservata-plugin .joyson-login-form-wrapper {
        padding: 15px;
    }

    .joyson-area-riservata-plugin .joyson-login-title {
        font-size: 36px;
        letter-spacing: -1px;
    }

    .joyson-area-riservata-plugin .joyson-login-description {
        font-size: 14px;
        margin-bottom: 24px;
    }

    .joyson-area-riservata-plugin .joyson-login-form {
        padding: 24px 20px;
    }

    .joyson-area-riservata-plugin .joyson-remember-group .joyson-login-btn {
        padding: 14px 24px;
        font-size: 16px;
    }

    .joyson-area-riservata-plugin .joyson-main-content {
        padding: 15px;
    }

    .joyson-area-riservata-plugin .joyson-dashboard-title {
        font-size: 1.2rem;
        padding: 20px 15px 15px 15px;
    }

    .joyson-area-riservata-plugin .joyson-sidebar-link {
        padding: 12px 15px;
        font-size: 0.9rem;
    }

    .joyson-area-riservata-plugin .joyson-form-group input[type="text"],
    .joyson-area-riservata-plugin .joyson-form-group input[type="password"],
    .joyson-area-riservata-plugin .joyson-form-group input[type="email"],
    .joyson-area-riservata-plugin .joyson-form-group textarea,
    .joyson-area-riservata-plugin .joyson-form-group select {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

/* ==========================================================================
   THEME ISOLATION - SCOPED RESETS
   ========================================================================== */

/* Only affect elements within our plugin container */
.joyson-area-riservata-plugin * {
    /* Reset common theme interference */
    text-shadow: none;
    box-shadow: none;
    border-radius: 0;
    background-image: none;
    background-attachment: initial;
    background-origin: initial;
    background-repeat: initial;
    background-size: initial;
    background-position: initial;
}

.joyson-area-riservata-plugin input,
.joyson-area-riservata-plugin button,
.joyson-area-riservata-plugin select,
.joyson-area-riservata-plugin textarea {
    /* Ensure form elements are not affected by theme styles */
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: none;
    text-transform: none;
    letter-spacing: normal;
    word-spacing: normal;
}

.joyson-area-riservata-plugin h1,
.joyson-area-riservata-plugin h2,
.joyson-area-riservata-plugin h3,
.joyson-area-riservata-plugin h4,
.joyson-area-riservata-plugin h5,
.joyson-area-riservata-plugin h6 {
    /* Reset heading styles from themes */
    font-weight: inherit;
    text-transform: none;
    letter-spacing: normal;
    text-decoration: none;
    text-align: inherit;
}

.joyson-area-riservata-plugin a {
    /* Reset link styles from themes */
    text-decoration: none;
    color: inherit;
    background-image: none;
    text-shadow: none;
    /* border-bottom: none; */
    box-shadow: none;
}

/* ==========================================================================
   CRITICAL: FULL PAGE ISOLATION STYLES
   ========================================================================== */

/* These styles are applied when the plugin takes over the full page */
body.joyson-dashboard-page,
body.joyson-login-page {
    margin: 0 !important;
    padding: 0 !important;
    background: #212121 !important;
    font-family: 'Raleway', sans-serif !important;
    color: #ffffff !important;
    overflow-x: hidden !important;
    line-height: 1.4 !important;
}

body.joyson-login-page {
    background: #191919 !important;
    min-height: 100vh !important;
}

/* Hide theme elements when plugin is active */
body.joyson-dashboard-page .site-header,
body.joyson-dashboard-page .site-footer,
body.joyson-dashboard-page .site-navigation,
body.joyson-dashboard-page #masthead,
body.joyson-dashboard-page #colophon,
body.joyson-dashboard-page .header,
body.joyson-dashboard-page .footer,
body.joyson-dashboard-page .navigation,
body.joyson-dashboard-page .wp-site-blocks,
body.joyson-dashboard-page #primary,
body.joyson-dashboard-page #content,
body.joyson-login-page .site-header,
body.joyson-login-page .site-footer,
body.joyson-login-page .site-navigation,
body.joyson-login-page #masthead,
body.joyson-login-page #colophon,
body.joyson-login-page .header,
body.joyson-login-page .footer,
body.joyson-login-page .navigation {
    display: none !important;
}

/* Ensure main content areas are properly styled */
body.joyson-dashboard-page .site-main,
body.joyson-dashboard-page .main-content,
body.joyson-dashboard-page .content-area,
body.joyson-login-page .site-main,
body.joyson-login-page .main-content,
body.joyson-login-page .content-area {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: none !important;
    background: transparent !important;
}

/* Additional login page styling */
body.joyson-login-page {
    margin: 0 !important;
    padding: 0 !important;
    background: #191919 !important;
    min-height: 100vh !important;
}

/* Hide theme elements on login and dashboard pages */
body.joyson-login-page .site-header,
body.joyson-login-page .site-footer,
body.joyson-login-page .site-navigation,
body.joyson-login-page #masthead,
body.joyson-login-page #colophon,
body.joyson-login-page .header,
body.joyson-login-page .footer,
body.joyson-login-page .navigation {
    display: none !important;
}

body.joyson-login-page .site-main,
body.joyson-login-page .main-content,
body.joyson-login-page .content-area {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
}

/* Update login form wrapper styles */
.joyson-area-riservata-plugin .joyson-login-form-wrapper {
    margin: 0 auto;
    padding: 20px;
}

/* Update input styles */
.joyson-area-riservata-plugin .joyson-login-form input[type="text"],
.joyson-area-riservata-plugin .joyson-login-form input[type="password"] {
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 1rem;
    width: 100%;
    box-sizing: border-box;
}

/* ==========================================================================
   FORM STYLES
   ========================================================================== */

.joyson-area-riservata-plugin .joyson-form-group {
    margin-bottom: 20px;
}

.joyson-area-riservata-plugin .joyson-form-group label {
    display: block;
    color: #ffffff;
    margin-bottom: 8px;
    font-size: 14px;
}

.joyson-area-riservata-plugin .joyson-form-group input,
.joyson-area-riservata-plugin .joyson-form-group textarea,
.joyson-area-riservata-plugin .joyson-form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 14px;
    transition: all 0.3s ease;
}

.joyson-area-riservata-plugin .joyson-form-group input:focus,
.joyson-area-riservata-plugin .joyson-form-group textarea:focus,
.joyson-area-riservata-plugin .joyson-form-group select:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.15);
}

.joyson-area-riservata-plugin .joyson-form-group input[readonly] {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    cursor: not-allowed;
}

.joyson-area-riservata-plugin .joyson-section-title {
    color: #ffffff;
    font-size: 18px;
    font-weight: 500;
    margin: 30px 0 20px;
}

.joyson-area-riservata-plugin .joyson-form-actions {
    margin-top: 30px;
    text-align: right;
}

/* .joyson-area-riservata-plugin .joyson-save-btn {
    background: #ffffff;
    color: #2c2c2c;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
} */

.joyson-area-riservata-plugin .joyson-save-btn:hover {
    background: rgba(255, 255, 255, 0.9);
}

.joyson-area-riservata-plugin .joyson-save-btn:disabled {
    background: rgba(255, 255, 255, 0.5);
    cursor: not-allowed;
}

/* Form validation styles */
.joyson-area-riservata-plugin .joyson-form-group input.error,
.joyson-area-riservata-plugin .joyson-form-group textarea.error,
.joyson-area-riservata-plugin .joyson-form-group select.error {
    border-color: #e74c3c;
}

.joyson-area-riservata-plugin .error-message {
    color: #e74c3c;
    font-size: 12px;
    margin-top: 5px;
}

/* Messages */
.joyson-area-riservata-plugin .joyson-messages {
    margin-bottom: 20px;
}

.joyson-area-riservata-plugin .joyson-messages .success,
.joyson-area-riservata-plugin .joyson-messages .error {
    padding: 12px;
    border-radius: 4px;
    font-size: 14px;
}

.joyson-area-riservata-plugin .joyson-messages .success {
    background: rgba(46, 204, 113, 0.2);
    border: 1px solid rgba(46, 204, 113, 0.3);
    color: #2ecc71;
}

.joyson-area-riservata-plugin .joyson-messages .error {
    background: rgba(231, 76, 60, 0.2);
    border: 1px solid rgba(231, 76, 60, 0.3);
    color: #e74c3c;
}

/* ==========================================================================
   DASHBOARD CONTAINER
   ========================================================================== */

.joyson-area-riservata-plugin .joyson-dashboard-container {
    display: flex;
    min-height: 100vh;
    background: #212121;
}

.joyson-area-riservata-plugin .joyson-dashboard-form {
    max-width: 600px;
}

.joyson-area-riservata-plugin .joyson-dashboard-form h2 {
    color: #ffffff;
    font-size: 24px;
    font-weight: 400;
    margin: 30px 0 20px;
}

.joyson-area-riservata-plugin .joyson-dashboard-form h2:first-child {
    margin-top: 0;
}

/* Terms and Conditions Tab */
.joyson-document-card {
    background: #292929;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #454545;
    border-radius: 20px;
}

/* Terms Acceptance Section */
.joyson-terms-acceptance {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    margin-top: 20px;
}

.joyson-terms-acceptance h4 {
    color: #fff;
    font-size: 16px;
    margin: 0 0 15px 0;
    font-weight: 500;
}

.joyson-radio-group {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.joyson-radio-label {
    display: flex;
    align-items: center;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    gap: 12px;
    position: relative;
}

.joyson-radio-label input[type="radio"] {
    width: 20px;
    height: 20px;
    margin: 0;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    border: 2px solid #ffffff;
    border-radius: 50%;
    background: transparent;
    position: relative;
    outline: none;
    transition: all 0.3s ease;
}

.joyson-radio-label input[type="radio"]:hover {
    border-color: #7AA2C4;
    background: rgba(122, 159, 196, 0.1);
}

.joyson-radio-label input[type="radio"]:checked {
    border-color: #ffffff;
    background: transparent;
}

.joyson-radio-label input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #7AA2C4;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
}

.joyson-radio-label input[type="radio"]:focus {
    box-shadow: 0 0 0 2px rgba(122, 159, 196, 0.3);
}

.joyson-rejection-reason {
    margin-top: 15px;
}

.joyson-rejection-reason label {
    display: block;
    color: #fff;
    font-size: 14px;
    margin-bottom: 8px;
}

.joyson-rejection-reason textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    color: #fff;
    padding: 12px;
    font-family: inherit;
    resize: vertical;
    box-sizing: border-box;
}

.joyson-rejection-reason textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.joyson-rejection-reason textarea:focus {
    outline: none;
    border-color: #7AA2C4;
    background: rgba(255, 255, 255, 0.15);
}

.joyson-document-title {
    color: #fff;
    font-size: 18px;
    margin: 0 0 8px 0;
}

.joyson-document-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    margin: 0 0 20px 0;
}

.joyson-document-actions {
    margin-top: 15px;
    margin-bottom: 15px;
}

.joyson-download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: transparent;
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 14px;
    transition: all 0.3s ease;
    border: 2px solid white;
    cursor: pointer;
    position: relative;
    box-sizing: border-box;
    margin: 0;
    line-height: normal;
}

.joyson-download-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
    text-decoration: none;
    color: white;
    border-color: white;
}

.joyson-download-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: white;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    padding: 7px;
}

.joyson-download-icon svg {
    width: 14px;
    height: 16px;
    fill: #7AA2C4;
}

.joyson-terms-toggle {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
}

.joyson-toggle-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff;
    font-size: 14px;
}

.joyson-toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
    margin-left: 10px;
}

.joyson-toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.joyson-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #545454;
    transition: .4s;
    border-radius: 34px;
    border: 2px solid #C1C1C1;
    box-sizing: border-box;
}

.joyson-toggle-slider:before {
    position: absolute;
    content: "✕";
    height: 26px;
    width: 26px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #545454;
}

input:checked + .joyson-toggle-slider {
    background-color: #7AA2C4;
    border-color: transparent;
}

input:checked + .joyson-toggle-slider:before {
    content: "";
    transform: translateX(26px);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30' fill='none'%3E%3Cpath d='M30 15C30 23.2843 23.2843 30 15 30C6.71573 30 0 23.2843 0 15C0 6.71573 6.71573 0 15 0C23.2843 0 30 6.71573 30 15Z' fill='white'/%3E%3Cpath d='M12.75 20.15L8 15.4L8.5 14.9L12.75 19.15L21.9 10L22.4 10.5L12.75 20.15Z' fill='%237AA2C4'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.joyson-toggle-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 15px 0;
    color: white;
    font-size: 14px;
}

/* Performance Tab */
.joyson-tab-title {
    color: #ffffff;
    font-size: 32px;
    font-weight: 600;
    margin: 0 0 3rem 0;
    letter-spacing: -0.5px;
}

.joyson-acceptance-timestamp {
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    margin-top: 8px;
    font-style: italic;
}

/* ==========================================================================
   CONTENT ONLY PAGE TEMPLATE STYLES
   ========================================================================== */

.joyson-area-riservata-plugin .joyson-content-only-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.joyson-area-riservata-plugin .joyson-content-only-wrapper {
    background: #ffffff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.joyson-area-riservata-plugin .joyson-content-only {
    font-size: 16px;
    line-height: 1.6;
    color: #333333;
}

.joyson-area-riservata-plugin .joyson-content-only p {
    margin-bottom: 1.5em;
}

.joyson-area-riservata-plugin .joyson-content-only img {
    max-width: 100%;
    height: auto;
    margin: 2em 0;
}

.joyson-area-riservata-plugin .joyson-content-only ul,
.joyson-area-riservata-plugin .joyson-content-only ol {
    margin: 1.5em 0;
    padding-left: 2em;
}

.joyson-area-riservata-plugin .joyson-content-only li {
    margin-bottom: 0.5em;
}

.joyson-area-riservata-plugin .joyson-content-only a {
    color: #0066cc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.joyson-area-riservata-plugin .joyson-content-only a:hover {
    color: #003366;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .joyson-area-riservata-plugin .joyson-content-only-container {
        padding: 20px;
    }
    
    .joyson-area-riservata-plugin .joyson-content-only-wrapper {
        padding: 20px;
    }
} 