/**
 * Nigeria Association Manager - Frontend Styles
 */

/* General Styles */
.nam-form {
    max-width: 800px;
    margin: 0 auto;
}

.nam-form fieldset {
    border: 1px solid #ddd;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.nam-form legend {
    font-weight: bold;
    padding: 0 10px;
    font-size: 1.1em;
}

.nam-form-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
}

.nam-form-group {
    flex: 1;
    padding: 0 10px;
    margin-bottom: 15px;
    min-width: 200px;
}

.nam-form-group-half {
    flex: 0 0 50%;
    max-width: 50%;
}

@media (max-width: 600px) {
    .nam-form-group-half {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

.nam-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.nam-form-group .required {
    color: #dc3232;
}

.nam-form-group input[type="text"],
.nam-form-group input[type="email"],
.nam-form-group input[type="tel"],
.nam-form-group input[type="date"],
.nam-form-group input[type="file"],
.nam-form-group select,
.nam-form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.nam-form-group input:focus,
.nam-form-group select:focus,
.nam-form-group textarea:focus {
    border-color: #007cba;
    outline: none;
    box-shadow: 0 0 0 1px #007cba;
}

.nam-form-group small {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 12px;
}

.nam-form-actions {
    text-align: center;
    margin-top: 30px;
}

/* Buttons */
.nam-button {
    display: inline-block;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.nam-button-primary {
    background-color: #007cba;
    color: #fff;
}

.nam-button-primary:hover {
    background-color: #005a87;
    color: #fff;
}

.nam-button-secondary {
    background-color: #f0f0f0;
    color: #333;
    border: 1px solid #ccc;
}

.nam-button-secondary:hover {
    background-color: #e0e0e0;
}

.nam-button-large {
    padding: 15px 40px;
    font-size: 18px;
}

/* Messages */
.nam-messages {
    margin-top: 20px;
}

.nam-message {
    padding: 15px 20px;
    border-radius: 4px;
    margin-bottom: 15px;
}

.nam-message.nam-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.nam-message.nam-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.nam-message.nam-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Member Dashboard */
.nam-member-dashboard {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.nam-dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 30px;
}

.nam-member-welcome h2 {
    margin: 0 0 5px;
    font-size: 24px;
}

.nam-membership-id {
    color: #666;
    font-size: 14px;
    margin: 0;
}

.nam-member-status-box {
    text-align: right;
}

.nam-status {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.nam-status-pending {
    background-color: #fff3cd;
    color: #856404;
}

.nam-status-active {
    background-color: #d4edda;
    color: #155724;
}

.nam-status-suspended {
    background-color: #f8d7da;
    color: #721c24;
}

.nam-status-expired {
    background-color: #f5f5f5;
    color: #666;
}

.nam-expiry-date {
    margin: 10px 0 0;
    font-size: 14px;
    color: #666;
}

.nam-expiry-date .nam-expired {
    color: #dc3232;
}

/* Dashboard Grid */
.nam-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.nam-dashboard-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
}

.nam-dashboard-card h3 {
    margin: 0 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #007cba;
    font-size: 18px;
}

/* Quick Links */
.nam-link-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nam-link-list li {
    margin-bottom: 10px;
}

.nam-link-list a {
    display: flex;
    align-items: center;
    padding: 10px;
    text-decoration: none;
    color: #333;
    border-radius: 4px;
    transition: background 0.3s;
}

.nam-link-list a:hover {
    background: #f0f0f0;
}

.nam-icon {
    margin-right: 10px;
    font-size: 18px;
}

/* Info Tables */
.nam-info-table {
    width: 100%;
}

.nam-info-table th,
.nam-info-table td {
    padding: 8px 0;
    text-align: left;
}

.nam-info-table th {
    width: 40%;
    color: #666;
    font-weight: 500;
}

/* Payment Card */
.nam-payment-card {
    text-align: center;
}

.nam-payment-card p {
    margin-bottom: 20px;
    color: #666;
}

.nam-payment-due {
    background: #fff8e1;
    border-color: #ffc107;
}

.nam-payment-message {
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.nam-payment-message.nam-expired {
    background: #ffebee;
    color: #c62828;
}

.nam-payment-message.nam-expiring {
    background: #fff3e0;
    color: #ef6c00;
}

/* Payments Table */
.nam-payments-table {
    width: 100%;
    border-collapse: collapse;
}

.nam-payments-table th,
.nam-payments-table td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.nam-payments-table th {
    font-weight: 600;
    color: #666;
}

.nam-payment-status {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.nam-payment-status-completed {
    background: #d4edda;
    color: #155724;
}

.nam-payment-status-pending {
    background: #fff3cd;
    color: #856404;
}

.nam-payment-status-failed {
    background: #f8d7da;
    color: #721c24;
}

.nam-view-all {
    text-align: right;
    margin-top: 15px;
}

.nam-view-all a {
    color: #007cba;
    text-decoration: none;
}

.nam-view-all a:hover {
    text-decoration: underline;
}

.nam-no-data {
    text-align: center;
    color: #666;
    padding: 20px;
}

/* Contact Section */
.nam-contact-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
}

.nam-contact-section h3 {
    margin: 0 0 20px;
}

.nam-contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.nam-contact-item {
    padding: 10px 0;
}

.nam-edit-link {
    text-align: center;
    margin: 0;
}

/* Login Form */
.nam-login-form {
    max-width: 400px;
    margin: 0 auto;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 8px;
}

.nam-login-form h2 {
    text-align: center;
    margin-bottom: 20px;
}

/* Member List */
.nam-member-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.nam-member-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
}

.nam-member-card-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 15px;
    overflow: hidden;
    background: #f0f0f0;
}

.nam-member-card-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nam-member-card-name {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 5px;
}

.nam-member-card-id {
    color: #666;
    font-size: 14px;
    margin: 0 0 10px;
}

.nam-member-card-location {
    color: #888;
    font-size: 13px;
    margin: 0;
}

/* Profile Form */
.nam-profile-form {
    max-width: 800px;
    margin: 0 auto;
}

.nam-profile-header {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.nam-profile-photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 20px;
    background: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nam-profile-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nam-profile-photo-placeholder {
    font-size: 40px;
    color: #999;
}

.nam-profile-info h2 {
    margin: 0 0 5px;
}

.nam-profile-info p {
    margin: 0;
    color: #666;
}

/* Responsive */
@media (max-width: 768px) {
    .nam-dashboard-header {
        flex-direction: column;
        text-align: center;
    }
    
    .nam-member-status-box {
        text-align: center;
        margin-top: 15px;
    }
    
    .nam-profile-header {
        flex-direction: column;
        text-align: center;
    }
    
    .nam-profile-photo {
        margin: 0 0 15px;
    }
}
