/* --- General Page Body --- */
body.page-template-default {
    background-color: #f0f2f5;
}

/* --- NEW Availability Notice --- */
.rrm-availability-notice {
    max-width: 450px;
    margin: 20px auto;
    padding: 15px;
    border-radius: 6px;
    text-align: center;
    font-size: 16px;
    border: 1px solid;
}
.rrm-availability-notice.available {
    background-color: #d1fae5; /* Light green */
    color: #065f46; /* Dark green */
    border-color: #a7f3d0;
}
.rrm-availability-notice.full {
    background-color: #fee2e2; /* Light red */
    color: #991b1b; /* Dark red */
    border-color: #fecaca;
}

/* --- SIGNUP PAGE STYLES --- */
#rrm-signup-wrapper {
    max-width: 450px;
    margin: 20px auto 50px auto;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    padding: 40px;
}
#rrm-signup-wrapper h2 {
    font-size: 28px;
    font-weight: 600;
    text-align: center;
    margin-top: 0;
    margin-bottom: 10px;
    color: #1d2327;
}
#rrm-signup-wrapper .form-description {
    text-align: center;
    color: #50575e;
    margin-bottom: 30px;
}
#rrm-signup-form p {
    margin-bottom: 20px;
}
#rrm-signup-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}
#rrm-signup-form input[type="text"],
#rrm-signup-form input[type="email"],
#rrm-signup-form input[type="password"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 16px;
}
.rrm-password-wrapper {
    position: relative;
}
.rrm-toggle-password {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    cursor: pointer;
    color: #888;
}
#rrm-signup-form .password-hint {
    font-size: 13px;
    color: #777;
    margin-top: 5px;
}
#rrm-signup-form .rrm-submit-btn {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 6px;
    background-color: #50575e;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
    transition: background-color 0.2s ease;
}
#rrm-signup-form .rrm-submit-btn:hover {
    background-color: #333;
}
.rrm-login-link {
    text-align: center;
    margin-top: 20px;
}


/* --- DASHBOARD STYLES --- */
.rrm-dashboard { max-width: 700px; margin: 40px auto; padding: 0; background-color: transparent; border: none; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; color: #333; }
.rrm-student-details-card { background: linear-gradient(135deg, #1e3a8a, #3b82f6); color: #ffffff; border-radius: 12px; padding: 24px; margin-bottom: 20px; box-shadow: 0 4px 20px rgba(0,0,0,0.1); text-align: center; }
.rrm-student-details-card h3 { margin: 0 0 15px 0; font-size: 24px; font-weight: 600; padding-bottom: 15px; }
.rrm-student-details-card p { font-size: 16px; line-height: 1.7; margin: 8px 0; opacity: 0.9; text-align: left; }
.rrm-student-details-card strong { font-weight: bold; opacity: 1.0; }
.rrm-card { background-color: #ffffff; border-radius: 12px; padding: 24px; margin-bottom: 20px; box-shadow: 0 4px 20px rgba(0,0,0,0.08); }
.rrm-card h4 { font-size: 20px; margin-top: 0; margin-bottom: 20px; color: #1d2327; }
.status-badge { display: inline-block; padding: 5px 12px; border-radius: 20px; font-weight: bold; font-size: 14px; text-transform: uppercase; }
.status-active { background-color: #d1fae5; color: #065f46; }
.status-expired { background-color: #fee2e2; color: #991b1b; }
.status-no-payment { background-color: #e5e7eb; color: #4b5563; }
.rrm-pay-button { display: inline-block; text-decoration: none; font-size: 16px; font-weight: 600; line-height: 1; padding: 12px 24px; cursor: pointer; border-width: 0; border-radius: 6px; background-color: #2563eb; color: #ffffff !important; transition: background-color 0.2s ease-in-out; }
.rrm-pay-button:hover { background-color: #1d4ed8; }
.payment-options form { display: inline; }
.payment-options { display: flex; flex-wrap: wrap; gap: 15px; margin-top: 15px; align-items: center; }
.rrm-history-card table { width: 100%; border-collapse: collapse; }
.rrm-history-card th, .rrm-history-card td { padding: 12px 0; border-bottom: 1px solid #e5e7eb; text-align: left; }
.rrm-history-card th { font-weight: 600; color: #4b5563; font-size:14px; }
.rrm-history-card td { color: #374151; }
.rrm-history-card tr:last-child td { border-bottom: none; }
#grievance_subject, #grievance_content { width: 100%; padding: 10px; border: 1px solid #ddd; border-radius: 6px; margin-top: 5px; }
#grievance_content { resize: vertical; }
.rrm-error { color: #721c24; border: 1px solid #f8d7da; background-color: #f8d7da; padding: 15px; margin-bottom: 20px; border-radius: 6px; }
.rrm-success { color: #155724; border: 1px solid #d4edda; background-color: #d4edda; padding: 15px; margin-bottom: 20px; border-radius: 6px; }
.wifi-info { display: flex; justify-content: space-between; align-items: center; margin-top: 15px !important; padding: 10px 15px; background-color: #f0fdf4; border-left: 4px solid #22c55e; border-radius: 4px; text-align: left; color: #333; }
.wifi-info code { background-color: #dcfce7; padding: 3px 6px; border-radius: 4px; font-family: monospace; font-size: 1.1em; }
#rrm-copy-wifi-btn { background: transparent; border: none; cursor: pointer; font-size: 20px; opacity: 0.7; transition: opacity 0.2s; padding: 0 0 0 10px; }
#rrm-copy-wifi-btn:hover { opacity: 1; }
.rrm-profile-pic { width: 90px !important; height: 90px !important; border-radius: 50% !important; border: 4px solid #ffffff; margin: 0 auto 15px auto; display: block; object-fit: cover; box-shadow: 0 5px 15px rgba(0,0,0,0.2); }