/* Archer Members Plugin Styles */

/* Ensure menu items are visible */
#side-menu .menu li a {
    color: inherit !important;
    text-decoration: none !important;
}

/* Members Area Header Logo */
.archer-header .archer-logo img {
    height: 60px;
    width: auto;
    display: block;
}

.archer-header .archer-logo a {
    display: block;
    text-decoration: none;
}

/* Reset and Base Styles */
.archer-form-container,
.archer-members-container {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Form Styles */
.archer-form-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: rgba(0, 0, 0, 0.15) 0px 25px 20px -20px;
    border:solid 1px #ddd;
}

.archer-form-container h2 {
    margin: 0 0 1.5rem 0;
    color: #2c3e50;
    font-size: 1.5rem;
    font-weight: 600;
    text-align: center;
}

.archer-form {
    margin: 0;
}

.archer-form-group {
    margin-bottom: 1.5rem;
}

.archer-form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #555;
}

.archer-form-group input[type="text"],
.archer-form-group input[type="email"],
.archer-form-group input[type="password"],
.archer-form-group input[type="tel"] {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.archer-form-group input:focus {
    outline: none;
    border-color: #1a202c;
    box-shadow: 0 0 0 2px rgba(26, 32, 44, 0.2);
}

.archer-form-group input[readonly] {
    background-color: #f8f9fa;
    color: #6c757d;
    cursor: not-allowed;
}

.archer-form-group input[readonly]:focus {
    border-color: #ddd;
    box-shadow: none;
}

.archer-form-group input[type="checkbox"] {
    margin-right: 0.5rem;
}

.archer-btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.archer-btn-primary {
    background: #1a202c;
    color: #fff;
}

.archer-btn-primary:hover {
    background: #2d3748;
    transform: translateY(-1px);
}

.archer-btn-secondary {
    background:none;
    border:solid 1px #ddd;
    color: #000;
}

.archer-btn-secondary:hover {
    border:solid 1px #000;
}

.archer-form-message {
    margin-top: 1rem;
    padding: 0.75rem;
    border-radius: 4px;
    font-weight: 500;
    display: none;
}

.archer-form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    opacity: 1;
    visibility: visible;
}

.archer-form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    opacity: 1;
    visibility: visible;
}

.archer-form-footer {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
    text-align: center;
}

.archer-form-footer a {
    color: #1a202c;
    text-decoration: none;
}

.archer-form-footer a:hover {
    text-decoration: underline;
}

/* Members Area Styles */
.archer-members-page {
    margin: 0;
    padding: 0;
    background: #f8f9fa;
    min-height: 100vh;
}

.archer-members-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header */
.archer-header {
    background: #fff;
    border-bottom: 1px solid #ddd;
    padding: 10px 0;
}

.archer-header-content {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.archer-logo a {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
    text-decoration: none;
}

.archer-user-menu {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.archer-user-name {
    font-weight: 500;
    color: #555;
}

/* Main Layout */
.archer-main {
    display: flex;
    flex: 1;
    max-width: 100%;
    margin: 0 auto;
    width: 100%;
}

/* Sidebar */
.archer-sidebar {
    width: 250px;
    border-right: 1px solid #ddd;
    padding: 2rem 0;
}

.archer-navigation {
    padding: 0 1rem;
}

.archer-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.archer-nav-item {
    margin-bottom: 0.5rem;
}

.archer-nav-link {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    color: #555;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.archer-nav-link:hover {
    background: #f8f9fa;
    color: #000;
}

.archer-nav-item.active .archer-nav-link {
    background: #1a202c;
    color: #fff;
}

.archer-nav-item.active .archer-nav-icon::before {
    filter: brightness(0) invert(1);
}

.archer-nav-icon {
    width: 20px;
    height: 20px;
    margin-right: 0.75rem;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.archer-icon-dashboard::before {
    content: "";
    display: inline-block;
    width: 24px;
    height: 24px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='currentColor' d='M16 20v-7h4v7zm-6 0V4h4v16zm-6 0V9h4v11z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    vertical-align: text-top;
    margin-top: -5px;
}

.archer-icon-profile::before {
    content: "";
    display: inline-block;
    width: 24px;
    height: 24px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='currentColor' d='M12 12q-1.65 0-2.825-1.175T8 8t1.175-2.825T12 4t2.825 1.175T16 8t-1.175 2.825T12 12m-8 8v-2.8q0-.85.438-1.562T5.6 14.55q1.55-.775 3.15-1.162T12 13t3.25.388t3.15 1.162q.725.375 1.163 1.088T20 17.2V20z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    vertical-align: text-top;
    margin-top: -5px;
}

.archer-icon-settings::before {
    content: "";
    display: inline-block;
    width: 24px;
    height: 24px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='currentColor' d='m9.25 22l-.4-3.2q-.325-.125-.612-.3t-.563-.375L4.7 19.375l-2.75-4.75l2.575-1.95Q4.5 12.5 4.5 12.338v-.675q0-.163.025-.338L1.95 9.375l2.75-4.75l2.975 1.25q.275-.2.575-.375t.6-.3l.4-3.2h5.5l.4 3.2q.325.125.613.3t.562.375l2.975-1.25l2.75 4.75l-2.575 1.95q.025.175.025.338v.674q0 .163-.05.338l2.575 1.95l-2.75 4.75l-2.95-1.25q-.275.2-.575.375t-.6.3l-.4 3.2zm2.8-6.5q1.45 0 2.475-1.025T15.55 12t-1.025-2.475T12.05 8.5q-1.475 0-2.488 1.025T8.55 12t1.013 2.475T12.05 15.5'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    vertical-align: text-top;
    margin-top: -5px;
}

.archer-icon-portfolio::before {
    content: "";
    display: inline-block;
    width: 24px;
    height: 24px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='currentColor' d='M4 21q-.825 0-1.412-.587T2 19v-4h7v2h6v-2h7v4q0 .825-.587 1.413T20 21zm7-6v-2h2v2zm-9-2V8q0-.825.588-1.412T4 6h4V4q0-.825.588-1.412T10 2h4q.825 0 1.413.588T16 4v2h4q.825 0 1.413.588T22 8v5h-7v-2H9v2zm8-7h4V4h-4z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    vertical-align: text-top;
    margin-top: -5px;
}

.archer-icon-notifications::before {
    content: "";
    display: inline-block;
    width: 24px;
    height: 24px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='currentColor' d='M5 19q-.425 0-.712-.288T4 18t.288-.712T5 17h1v-7q0-2.075 1.25-3.687T10.5 4.2v-.7q0-.625.438-1.062T12 2t1.063.438T13.5 3.5v.7q2 .5 3.25 2.113T18 10v7h1q.425 0 .713.288T20 18t-.288.713T19 19zm7 3q-.825 0-1.412-.587T10 20h4q0 .825-.587 1.413T12 22M3 10q-.425 0-.712-.325t-.238-.75q.2-1.875 1.05-3.488t2.175-2.812q.325-.275.738-.25t.662.375t.2.75t-.375.7q-.975.925-1.6 2.15T4.075 9q-.05.425-.35.713T3 10m18 0q-.425 0-.725-.288T19.925 9q-.2-1.425-.825-2.65T17.5 4.2q-.325-.3-.375-.7t.2-.75t.663-.375t.737.25q1.325 1.2 2.175 2.812t1.05 3.488q.05.425-.237.75T21 10'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    vertical-align: text-top;
    margin-top: -5px;
}

/* Content Area */
.archer-content {
    flex: 1;
    margin: 2rem;
    border-radius: 8px;
}

.archer-content h1 {
    margin: 0 0 2rem 0;
    color: #2c3e50;
    font-size: 2rem;
    font-weight: 600;
}

/* Dashboard Styles */
.archer-dashboard-welcome {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.archer-dashboard-welcome h2 {
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
}

.archer-dashboard-welcome p {
    margin: 0;
    opacity: 0.9;
}

.archer-dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.archer-stat-card {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #1a202c;
}

.archer-stat-card h3 {
    margin: 0 0 0.5rem 0;
    font-size: 0.9rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.archer-stat-card p {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #2c3e50;
}

.archer-dashboard-recent {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
}

.archer-dashboard-recent h3 {
    margin: 0 0 1rem 0;
    color: #2c3e50;
}

/* Profile Styles */
.archer-profile {
    max-width: 600px;
}

/* Settings Styles */
.archer-settings-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e9ecef;
}

.archer-settings-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.archer-settings-section h3 {
    margin: 0 0 0.5rem 0;
    color: #2c3e50;
}

.archer-settings-section p {
    margin: 0 0 1rem 0;
    color: #6c757d;
}

.archer-setting-item {
    margin-bottom: 1rem;
}

.archer-setting-item label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 500;
}

.archer-setting-item input[type="checkbox"] {
    margin-right: 0.75rem;
}

/* Loading Overlay */
.archer-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.archer-loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #1a202c;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .archer-main {
        flex-direction: column;
    }
    
    .archer-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #e9ecef;
        padding: 1rem 0;
    }
    
    .archer-content {
        margin: 1rem;
        padding: 1rem;
    }
    
    .archer-header-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .archer-dashboard-stats {
        grid-template-columns: 1fr;
    }
    
    /* Override for dashboard widgets to maintain 2x2 layout */
    .archer-dashboard-widgets-row {
        flex-wrap: wrap !important;
    }
    
    .archer-widget {
        flex: 1 1 calc(50% - 0.5rem) !important;
        min-width: calc(50% - 0.5rem) !important;
    }
    
    /* Chart widgets should stack vertically */
    .archer-chart-widget {
        flex: 1 1 100% !important;
        min-width: 100% !important;
    }
    
    .archer-form-container {
        margin: 1rem;
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .archer-content {
        margin: 0.5rem;
        padding: 1rem;
    }
    
    .archer-form-container {
        margin: 0.5rem;
        padding: 1rem;
    }
    
    .archer-dashboard-welcome {
        padding: 1.5rem;
    }
}

/* Already Logged In Message Container Styles */
.archer-form-container.archer-already-logged-in {
    text-align: center;
}

.archer-form-container.archer-already-logged-in h2 {
    text-align: center;
    margin-bottom: 1rem;
}

.archer-form-container.archer-already-logged-in p {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #666;
}

.archer-form-container.archer-already-logged-in .archer-btn {
    display: inline-block;
    margin: 0 auto;
}

/* Dashboard Widgets */
.archer-dashboard-widgets-row {
    display: flex;
    width: 100%;
    gap: 1rem;
    margin-bottom: 1rem;
}

.archer-widget {
    background: white;
    flex: 1;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: rgba(50, 50, 93, 0.05) 0px 50px 100px -20px, rgba(0, 0, 0, 0.05) 0px 30px 60px -30px;
    border:solid 1px #ddd;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
}

.archer-widget-icon {
    margin-bottom: 1rem;
}

.archer-widget-icon .dashicons {
    font-size: 2.5rem;
    width: 2.5rem;
    height: 2.5rem;
    color: #1a202c;
}

.archer-widget-content h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    font-weight: 600;
    color: #2c3e50;
}

.archer-widget-value {
    font-size: 2rem;
    font-weight: 700;
    color: #3498db;
    line-height: 1;
}

/* Responsive Design for Widgets */
@media (max-width: 1024px) {
    .archer-dashboard-widgets-row {
        flex-wrap: wrap;
    }
    
    .archer-widget {
        flex: 1 1 calc(50% - 0.5rem);
        min-width: calc(50% - 0.5rem);
        padding: 1rem;
    }
    
    .archer-widget-icon .dashicons {
        font-size: 2rem;
        width: 2rem;
        height: 2rem;
    }
    
    .archer-widget-value {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .archer-dashboard-widgets-row {
        flex-wrap: wrap;
    }
    
    .archer-widget {
        flex: 1 1 calc(50% - 0.5rem);
        min-width: calc(50% - 0.5rem);
        padding: 1rem;
    }
    
    .archer-widget-icon .dashicons {
        font-size: 2rem;
        width: 2rem;
        height: 2rem;
    }
    
    .archer-widget-value {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .archer-dashboard-widgets-row {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .archer-widget {
        flex: 1 1 calc(50% - 0.25rem);
        min-width: calc(50% - 0.25rem);
        padding: 0.75rem;
    }
    
    /* Chart widgets should stack vertically */
    .archer-chart-widget {
        flex: 1 1 100% !important;
        min-width: 100% !important;
    }
    
    .archer-widget-icon .dashicons {
        font-size: 1.5rem;
        width: 1.5rem;
        height: 1.5rem;
    }
    
    .archer-widget-value {
        font-size: 1.25rem;
    }
}

/* Chart Widgets */
.archer-chart-widget {
    min-height: 300px !important;
    display: flex;
    flex-direction: column;
}

.archer-chart-widget .archer-widget-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.archer-chart-widget h3 {
    margin-bottom: 1rem;
    text-align: center;
    color: #2c3e50;
    font-size: 1.2rem;
    font-weight: 600;
}

.archer-chart-widget canvas {
    flex: 1;
    max-height: 250px;
    width: 100% !important;
    height: auto !important;
}

/* Responsive adjustments for chart widgets */
@media (max-width: 1024px) {
    .archer-chart-widget {
        min-height: 250px !important;
    }
    
    .archer-chart-widget canvas {
        max-height: 200px;
    }
}

@media (max-width: 768px) {
    .archer-chart-widget {
        box-sizing: border-box;
        min-height: 200px !important;
    }
    
    .archer-chart-widget canvas {
        max-height: 150px;
    }
}

/* Form Layout */
.archer-form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.archer-form-row .archer-form-group {
    flex: 1;
    margin-bottom: 0;
}

/* Radio Button Styles */
.archer-radio-group {
    display: flex;
    gap: 1.5rem;
    margin-top: 0.5rem;
}

.archer-radio-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 500;
}

.archer-radio-label input[type="radio"] {
    margin-right: 0.5rem;
    cursor: pointer;
}

.archer-radio-text {
    cursor: pointer;
}

/* Responsive form layout */
@media (max-width: 768px) {
    .archer-form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .archer-form-row .archer-form-group {
        margin-bottom: 1rem;
    }
    
    .archer-radio-group {
        flex-direction: column;
        gap: 0.75rem;
    }
}
