/* Storemore Dashboard Styles - Light Theme (matches site theme) */

/* ============================================================
   DASHBOARD CONTAINER
   ============================================================ */
.storemore-dashboard-container {
    display: flex;
    min-height: 60vh;
    background-color: #ffffff;
    font-family: 'Nunito Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 15px;
    color: #333333;
    margin-top: 0 !important;
    align-items: flex-start;
}

/* ============================================================
   SIDEBAR – steady (not fixed), flows with the page
   ============================================================ */
.storemore-dashboard-container .dashboard-sidebar {
    width: 260px;
    flex-shrink: 0;
    background-color: #f8f8f8;
    border-right: 1px solid #e5e5e5;
    display: flex;
    flex-direction: column;
    padding: 30px 20px;
    position: relative; /* NOT fixed – stays in normal flow */
    top: auto;
    height: auto;
    min-height: 60vh;
    overflow-y: visible;
}

.storemore-dashboard-container .sidebar-logo h2 {
    color: #1a1a1a;
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 24px 0;
    line-height: 1.3;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ============================================================
   SIDEBAR NAVIGATION
   ============================================================ */
.storemore-dashboard-container .sidebar-nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.storemore-dashboard-container .nav-item {
    color: #555555;
    text-decoration: none;
    padding: 11px 16px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 6px;
    transition: background-color 0.2s ease, color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.storemore-dashboard-container .nav-item:hover {
    background-color: #f0f0f0;
    color: #1a1a1a;
}

.storemore-dashboard-container .nav-item.active {
    background-color: #93c120;
    color: #ffffff;
}

.storemore-dashboard-container .nav-item::after {
    content: '▼';
    font-size: 9px;
    opacity: 0.4;
}

/* ============================================================
   SIDEBAR FOOTER
   ============================================================ */
.storemore-dashboard-container .sidebar-footer {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.storemore-dashboard-container .btn-get-price {
    background-color: #ff6b35;
    color: #ffffff;
    text-decoration: none;
    padding: 12px 20px;
    text-align: center;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    transition: background-color 0.2s ease;
}

.storemore-dashboard-container .btn-get-price:hover {
    background-color: #e55a25;
    color: #ffffff;
}

.storemore-dashboard-container .btn-logout {
    color: #666666;
    text-decoration: none;
    padding: 10px 16px;
    text-align: center;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.2s ease;
    border: 1px solid #e0e0e0;
}

.storemore-dashboard-container .btn-logout:hover {
    background-color: #f0f0f0;
    color: #333333;
}

/* ============================================================
   MAIN CONTENT AREA
   ============================================================ */
.storemore-dashboard-container .dashboard-main {
    flex: 1;
    padding: 36px 40px;
    background-color: #ffffff;
    min-width: 0; /* prevent flex overflow */
}

/* ============================================================
   DASHBOARD HEADER
   ============================================================ */
.storemore-dashboard-container .dashboard-header {
    margin-bottom: 32px;
}

.storemore-dashboard-container .dashboard-header h1 {
    color: #1a1a1a;
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 6px 0;
}

.storemore-dashboard-container .breadcrumb {
    color: #93c120;
    font-size: 13px;
    font-weight: 500;
}

/* ============================================================
   CONTENT SECTIONS
   ============================================================ */
.storemore-dashboard-container .dashboard-content {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.storemore-dashboard-container .content-section {
    display: none;
}

.storemore-dashboard-container .content-section.active {
    display: block;
}

/* Section card */
.storemore-dashboard-container .section-header {
    background-color: #93c120;
    padding: 16px 24px;
    border-radius: 6px 6px 0 0;
}

.storemore-dashboard-container .section-header h3 {
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    margin: 0;
}

.storemore-dashboard-container .section-body {
    background-color: #ffffff;
    border: 1px solid #e5e5e5;
    border-top: none;
    padding: 24px;
    border-radius: 0 0 6px 6px;
}

/* ============================================================
   INFO SECTION (verify ID / action area)
   ============================================================ */
.storemore-dashboard-container .info-sec {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 20px 0;
}

.storemore-dashboard-container .info-sec p {
    color: #333333;
    font-size: 16px;
    margin: 0 0 16px 0;
    text-align: center;
}

/* ============================================================
   TABLE
   ============================================================ */
.storemore-dashboard-container .table {
    width: 100%;
    margin-bottom: 0;
    background-color: #ffffff;
    border-collapse: collapse;
    font-size: 14px;
}

.storemore-dashboard-container .table thead th {
    background-color: #f5f5f5;
    color: #333333;
    padding: 12px 16px;
    text-align: left;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    border-bottom: 2px solid #e5e5e5;
}

.storemore-dashboard-container .table tbody td {
    padding: 12px 16px;
    color: #444444;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
}

.storemore-dashboard-container .table tbody tr:hover {
    background-color: #fafafa;
}

.storemore-dashboard-container .table-striped tbody tr:nth-of-type(odd) {
    background-color: #fafafa;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.storemore-dashboard-container .btn {
    display: inline-block;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.storemore-dashboard-container .btn-primary {
    background-color: #93c120;
    color: #ffffff;
}

.storemore-dashboard-container .btn-primary:hover {
    background-color: #7aae1a;
    color: #ffffff;
}

.storemore-dashboard-container .btn-dark {
    background-color: #333333;
    color: #ffffff;
}

.storemore-dashboard-container .btn-dark:hover {
    background-color: #222222;
    color: #ffffff;
}

.storemore-dashboard-container .btn-danger {
    background-color: #dc3545;
    color: #ffffff;
}

.storemore-dashboard-container .btn-danger:hover {
    background-color: #c82333;
    color: #ffffff;
}

.storemore-dashboard-container .btn-warn {
    background-color: #ffc107;
    color: #333333;
}

.storemore-dashboard-container .btn-warn:hover {
    background-color: #e0a800;
    color: #333333;
}

/* ============================================================
   FORM STYLES
   ============================================================ */
.storemore-dashboard-container input[type="text"],
.storemore-dashboard-container input[type="email"],
.storemore-dashboard-container input[type="password"],
.storemore-dashboard-container input[type="date"],
.storemore-dashboard-container select {
    background-color: #ffffff;
    border: 1px solid #d0d0d0;
    color: #333333;
    padding: 10px 14px;
    width: 100%;
    margin-bottom: 14px;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s ease;
}

.storemore-dashboard-container input[type="text"]:focus,
.storemore-dashboard-container input[type="email"]:focus,
.storemore-dashboard-container input[type="password"]:focus,
.storemore-dashboard-container input[type="date"]:focus,
.storemore-dashboard-container select:focus {
    outline: none;
    border-color: #93c120;
    box-shadow: 0 0 0 2px rgba(147, 193, 32, 0.15);
}

.storemore-dashboard-container label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #444444;
    font-size: 13px;
}

/* ============================================================
   ALERTS
   ============================================================ */
.storemore-dashboard-container .error-message {
    color: #c0392b;
    padding: 12px 16px;
    background-color: #fdf2f2;
    border: 1px solid #e8a5a5;
    border-radius: 6px;
    margin-bottom: 14px;
    font-size: 14px;
}

.storemore-dashboard-container .success-message {
    color: #3a7d0f;
    padding: 12px 16px;
    background-color: #f4fbea;
    border: 1px solid #b5d977;
    border-radius: 6px;
    margin-bottom: 14px;
    font-size: 14px;
}

/* ============================================================
   SIGNATURE PAD
   ============================================================ */
.storemore-dashboard-container .signature-pad {
    border: 1px solid #d0d0d0;
    background-color: #ffffff;
    touch-action: none;
    border-radius: 6px;
    height: 215px;
}

.storemore-dashboard-container .signature-pad canvas {
    width: 100%;
    height: 200px;
}

/* ============================================================
   LOGIN FORM
   ============================================================ */
.storemore-login-form {
    max-width: 420px;
    margin: 0 auto;
    padding: 40px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid #e8e8e8;
}

.storemore-login-form form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.storemore-login-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.storemore-login-form label {
    color: #444444;
    font-size: 13px;
    font-weight: 600;
    margin: 0;
}

.storemore-login-form input[type="text"],
.storemore-login-form input[type="password"] {
    background-color: #ffffff;
    border: 1px solid #d0d0d0;
    color: #333333;
    padding: 11px 14px;
    width: 100%;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s ease;
}

.storemore-login-form input[type="text"]:focus,
.storemore-login-form input[type="password"]:focus {
    outline: none;
    border-color: #93c120;
    box-shadow: 0 0 0 2px rgba(147, 193, 32, 0.15);
}

.storemore-login-form .forgot-password-link {
    color: #93c120;
    text-decoration: none;
    font-size: 13px;
    align-self: flex-end;
    transition: color 0.2s ease;
}

.storemore-login-form .forgot-password-link:hover {
    color: #7aae1a;
    text-decoration: underline;
}

.storemore-login-form input[type="submit"].btn-login {
    background-color: #93c120;
    color: #ffffff;
    padding: 13px 30px;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    transition: background-color 0.2s ease;
    margin-top: 8px;
    letter-spacing: 0.4px;
}

.storemore-login-form input[type="submit"].btn-login:hover {
    background-color: #7aae1a;
}

.storemore-login-form .error-message,
.storemore-login-form .success-message {
    margin: 0;
    text-align: center;
}

/* ============================================================
   PAGE-LEVEL LOGIN (page-id-login)
   ============================================================ */
.page-id-login form,
.page-id-login .custom-login-form {
    max-width: 420px;
    margin: 0 auto;
    padding: 40px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid #e8e8e8;
}

.page-id-login form p {
    margin-bottom: 18px;
}

.page-id-login form label {
    display: block;
    color: #444444;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
}

.page-id-login form input[type="text"],
.page-id-login form input[type="password"] {
    background-color: #ffffff;
    border: 1px solid #d0d0d0;
    color: #333333;
    padding: 11px 14px;
    width: 100%;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s ease;
}

.page-id-login form input[type="text"]:focus,
.page-id-login form input[type="password"]:focus {
    outline: none;
    border-color: #93c120;
    box-shadow: 0 0 0 2px rgba(147, 193, 32, 0.15);
}

.page-id-login form a {
    color: #93c120;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s ease;
}

.page-id-login form a:hover {
    color: #7aae1a;
    text-decoration: underline;
}

.page-id-login form input[type="submit"] {
    background-color: #93c120;
    color: #ffffff;
    padding: 13px 30px;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    transition: background-color 0.2s ease;
    width: 100%;
    letter-spacing: 0.4px;
}

.page-id-login form input[type="submit"]:hover {
    background-color: #7aae1a;
}

.page-id-login form .error-message,
.page-id-login form .success-message {
    margin: 0;
    text-align: center;
    padding: 12px 16px;
    border-radius: 6px;
}

.page-id-login form .error-message {
    color: #c0392b;
    background-color: #fdf2f2;
    border: 1px solid #e8a5a5;
}

.page-id-login form .success-message {
    color: #3a7d0f;
    background-color: #f4fbea;
    border: 1px solid #b5d977;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media only screen and (max-width: 1024px) {
    .storemore-dashboard-container .dashboard-sidebar {
        width: 220px;
        padding: 24px 16px;
    }

    .storemore-dashboard-container .dashboard-main {
        padding: 28px 24px;
    }

    .storemore-dashboard-container .dashboard-header h1 {
        font-size: 20px;
    }
}

@media only screen and (max-width: 768px) {
    .storemore-dashboard-container {
        flex-direction: column;
    }

    .storemore-dashboard-container .dashboard-sidebar {
        width: 100%;
        min-height: auto;
        border-right: none;
        border-bottom: 1px solid #e5e5e5;
        padding: 20px 16px;
    }

    .storemore-dashboard-container .dashboard-main {
        padding: 20px 16px;
    }

    .storemore-dashboard-container .sidebar-logo h2 {
        font-size: 14px;
        margin-bottom: 16px;
    }

    .storemore-dashboard-container .sidebar-nav {
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 8px;
        gap: 6px;
    }

    .storemore-dashboard-container .nav-item {
        white-space: nowrap;
        padding: 9px 14px;
        font-size: 13px;
    }

    .storemore-dashboard-container .sidebar-footer {
        flex-direction: row;
        margin-top: 16px;
        gap: 8px;
    }

    .storemore-dashboard-container .btn-get-price,
    .storemore-dashboard-container .btn-logout {
        flex: 1;
        padding: 10px 14px;
        font-size: 13px;
    }

    .storemore-dashboard-container .dashboard-header h1 {
        font-size: 18px;
    }

    .storemore-dashboard-container .section-header,
    .storemore-dashboard-container .section-body {
        padding: 16px;
    }

    .storemore-dashboard-container .table {
        font-size: 13px;
    }

    .storemore-dashboard-container .table thead th,
    .storemore-dashboard-container .table tbody td {
        padding: 10px 12px;
    }
}