/**
 * Guest Writer Public Styles
 */

/* Form Container */
.gw-form-container {
    max-width: 600px;
    margin: 20px auto;
    padding: 30px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
}

/* Form Styles */
.gw-form {
    margin: 20px 0;
}

.gw-form-field {
    margin-bottom: 20px;
}

.gw-form-field label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.gw-form-field input[type="text"],
.gw-form-field input[type="email"],
.gw-form-field input[type="password"],
.gw-form-field input[type="url"],
.gw-form-field textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 14px;
}

.gw-form-field .required {
    color: #d00;
}

.gw-field-hint {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #666;
}

/* Password Strength Meter */
.gw-password-strength-meter {
    margin-top: 10px;
}

.gw-strength-bar {
    width: 100%;
    height: 8px;
    background: #ddd;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 5px;
}

.gw-strength-bar-fill {
    height: 100%;
    width: 0%;
    transition: width 0.3s, background-color 0.3s;
    background: #ccc;
}

.gw-strength-bar-fill.weak {
    background: #d00;
}

.gw-strength-bar-fill.medium {
    background: #ffa500;
}

.gw-strength-bar-fill.strong {
    background: #0a0;
}

.gw-strength-text {
    font-size: 13px;
    font-weight: 600;
}

.gw-strength-text.weak {
    color: #d00;
}

.gw-strength-text.medium {
    color: #ffa500;
}

.gw-strength-text.strong {
    color: #0a0;
}

/* Password Requirements */
.gw-password-requirements {
    margin-top: 15px;
    padding: 15px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 3px;
}

.gw-password-requirements p {
    margin: 0 0 10px 0;
}

.gw-password-requirements ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.gw-password-requirements li {
    margin-bottom: 5px;
    font-size: 13px;
}

.gw-requirement-icon {
    display: inline-block;
    width: 18px;
    font-weight: bold;
}

.gw-requirement.met .gw-requirement-icon {
    color: #0a0;
}

.gw-requirement.not-met .gw-requirement-icon {
    color: #d00;
}

.gw-requirement.met {
    color: #0a0;
}

/* Buttons */
.gw-button {
    display: inline-block;
    padding: 10px 20px;
    background: #f0f0f0;
    color: #333;
    text-decoration: none;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s;
}

.gw-button:hover {
    background: #e0e0e0;
}

.gw-button-primary {
    background: #0073aa;
    color: #fff;
}

.gw-button-primary:hover {
    background: #005a87;
}

/* Notices */
.gw-notice {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 3px;
}

.gw-notice.gw-warning {
    background: #fff3cd;
    border: 1px solid #ffc107;
    color: #856404;
}

.gw-error-notice {
    padding: 15px;
    margin-bottom: 20px;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    border-radius: 3px;
}

.gw-success-notice {
    padding: 15px;
    margin-bottom: 20px;
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    border-radius: 3px;
}

/* Dashboard */
.gw-dashboard {
    max-width: 1000px;
    margin: 20px auto;
}

.gw-dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.gw-stat-box {
    padding: 20px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.gw-stat-box h4 {
    margin-top: 0;
}

.gw-stat-number {
    font-size: 32px;
    font-weight: bold;
    color: #0073aa;
    margin: 10px 0;
}

.gw-debt-box .gw-stat-number {
    color: #d00;
}

/* Progress Bar */
.gw-progress-bar {
    width: 100%;
    height: 20px;
    background: #ddd;
    border-radius: 10px;
    overflow: hidden;
    margin: 10px 0;
}

.gw-progress-fill {
    height: 100%;
    background: #0073aa;
    transition: width 0.3s;
}

/* Submissions Table */
.gw-submissions-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.gw-submissions-table th,
.gw-submissions-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.gw-submissions-table th {
    background: #f9f9f9;
    font-weight: 600;
}

/* Status Badges */
.gw-status-pending {
    display: inline-block;
    padding: 3px 8px;
    background: #ffc107;
    color: #fff;
    border-radius: 3px;
    font-size: 12px;
}

.gw-status-approved {
    display: inline-block;
    padding: 3px 8px;
    background: #28a745;
    color: #fff;
    border-radius: 3px;
    font-size: 12px;
}

.gw-status-rejected {
    display: inline-block;
    padding: 3px 8px;
    background: #dc3545;
    color: #fff;
    border-radius: 3px;
    font-size: 12px;
}

.gw-warning-text {
    color: #d00;
    font-weight: 600;
}

.gw-small-text {
    font-size: 12px;
    color: #666;
}

.gw-form-footer {
    text-align: center;
    margin-top: 20px;
}

.gw-form-description {
    font-size: 14px;
    color: #666;
}

.gw-dashboard-actions {
    margin: 30px 0;
}

.gw-dashboard-actions .gw-button {
    margin-right: 10px;
}
