/**
 * PickMo Login & Admin Styles
 * Location: wp-content/dash/login-styles.css
 * Matches dashboard aesthetic with Rubik font
 */

/* Base */
* {
    box-sizing: border-box;
    font-family: 'Rubik', sans-serif;
}

/* Login Container */
.pickmo-login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
    padding: 40px 20px;
}

.pickmo-login-box {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    width: 100%;
    max-width: 420px;
    overflow: hidden;
}

.pickmo-login-header {
    background: #f8fafc;
    color: #1e293b;
    padding: 30px;
    text-align: center;
    border-bottom: 1px solid #e2e8f0;
}

.pickmo-login-header h2 {
    margin: 0 0 8px 0;
    font-size: 24px;
    font-weight: 600;
    color: #1e293b;
}

.pickmo-login-header p {
    margin: 0;
    color: #64748b;
    font-size: 14px;
}

.pickmo-login-body {
    padding: 30px;
}

/* Forms */
.pickmo-form .pickmo-form-group {
    margin-bottom: 20px;
}

.pickmo-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #1e293b;
    font-size: 14px;
}

.pickmo-form input[type="text"],
.pickmo-form input[type="email"],
.pickmo-form input[type="password"],
.pickmo-form select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #ffffff;
    color: #1e293b;
}

.pickmo-form input:focus,
.pickmo-form select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.pickmo-form input::placeholder {
    color: #94a3b8;
}

.pickmo-checkbox {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: #64748b;
}

.pickmo-checkbox input {
    margin-right: 8px;
    cursor: pointer;
}

.pickmo-form-inline {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pickmo-forgot-link {
    font-size: 13px;
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
}

.pickmo-forgot-link:hover {
    text-decoration: underline;
}

/* Buttons */
.pickmo-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
    text-decoration: none;
}

.pickmo-btn-primary {
    background: #3b82f6;
    color: #ffffff;
}

.pickmo-btn-primary:hover {
    background: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
}

.pickmo-btn-secondary {
    background: #f1f5f9;
    color: #475569;
}

.pickmo-btn-secondary:hover {
    background: #e2e8f0;
}

.pickmo-btn-danger {
    background: #ef4444;
    color: #ffffff;
}

.pickmo-btn-danger:hover {
    background: #dc2626;
}

.pickmo-btn-outline {
    background: transparent;
    border: 1px solid currentColor;
}

.pickmo-btn-full {
    width: 100%;
}

.pickmo-btn-small {
    padding: 6px 12px;
    font-size: 12px;
}

/* Alerts */
.pickmo-alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin: 0 30px 20px 30px;
    font-size: 14px;
}

.pickmo-alert-error {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.pickmo-alert-success {
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}

/* Password Reset */
.pickmo-reset-info {
    color: #64748b;
    font-size: 14px;
    margin-bottom: 20px;
    line-height: 1.6;
}

.pickmo-back-link {
    text-align: center;
    margin-top: 20px;
}

.pickmo-back-link a {
    color: #3b82f6;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.pickmo-back-link a:hover {
    text-decoration: underline;
}

/* User Bar */
.pickmo-user-bar {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    background: #f8fafc;
    border-radius: 8px;
}

.pickmo-user-name {
    font-size: 14px;
    font-weight: 500;
    color: #1e293b;
}

/* Badges */
.pickmo-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pickmo-badge-admin {
    background: #3b82f6;
    color: #ffffff;
}

.pickmo-badge-user {
    background: #10b981;
    color: #ffffff;
}

/* Logged In State */
.pickmo-logged-in .pickmo-login-body {
    text-align: center;
}

.pickmo-logged-in p {
    color: #64748b;
    margin-bottom: 24px;
}

.pickmo-login-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

/* Dashboard Header */
.pickmo-dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.pickmo-dashboard-header h1 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    color: #1e293b;
}

/* Tables */
.pickmo-table-container {
    overflow-x: auto;
    margin-top: 20px;
}

.pickmo-table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.pickmo-table th {
    background: #f8fafc;
    padding: 14px 16px;
    text-align: left;
    font-weight: 600;
    color: #64748b;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #e2e8f0;
}

.pickmo-table td {
    padding: 14px 16px;
    border-bottom: 1px solid #f1f5f9;
    color: #475569;
    font-size: 14px;
}

.pickmo-table tr:hover td {
    background: #f8fafc;
}

.pickmo-table .pickmo-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.pickmo-table select {
    padding: 6px 10px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 12px;
    background: white;
}

.pickmo-text-muted {
    color: #94a3b8;
}

/* Modal */
.pickmo-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    padding: 20px;
}

.pickmo-modal-content {
    background: #ffffff;
    border-radius: 12px;
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.pickmo-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #e2e8f0;
}

.pickmo-modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
}

.pickmo-modal-close {
    background: #3b82f6;
    border: none;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.pickmo-modal-close:hover {
    background: #2563eb;
}

.pickmo-modal-content .pickmo-form {
    padding: 24px;
}

.pickmo-modal-footer {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

/* Responsive */
@media (max-width: 480px) {
    .pickmo-login-box {
        margin: 0 10px;
    }
    
    .pickmo-login-header,
    .pickmo-login-body {
        padding: 24px 20px;
    }
    
    .pickmo-form-inline {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .pickmo-login-actions {
        flex-direction: column;
    }
    
    .pickmo-dashboard-header {
        flex-direction: column;
        align-items: flex-start;
    }
}