/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
header {
    background: rgba(255, 255, 255, 0.95);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

header h1 {
    color: #667eea;
    margin-bottom: 10px;
}

nav {
    margin-top: 15px;
}

nav a {
    color: #667eea;
    text-decoration: none;
    margin-right: 20px;
    font-weight: 500;
    transition: color 0.3s;
}

nav a:hover {
    color: #764ba2;
}

/* Main Content */
main {
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

/* Footer */
footer {
    text-align: center;
    color: white;
    padding: 20px;
}

/* Home Page */
.home-page {
    text-align: center;
}

.welcome-box {
    margin-bottom: 40px;
}

.welcome-box h2 {
    color: #667eea;
    margin-bottom: 15px;
    font-size: 2em;
}

.action-buttons {
     min-width: 200px;
}

.features {
    text-align: left;
    max-width: 600px;
    margin: 0 auto;
}

.features h3 {
    color: #667eea;
    margin-bottom: 15px;
}

.features ul {
    list-style: none;
}

.features li {
    padding: 10px 0;
    font-size: 1.1em;
}

/* Forms */
.form-container {
    max-width: 500px;
    margin: 0 auto;
}

.form-container h2 {
    color: #667eea;
    margin-bottom: 25px;
    text-align: center;
}

.form {
    margin-top: 20px;
}

.form-group {
    margin-bottom: 20px;
}

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

.form-group input {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: #777;
    font-size: 0.9em;
}

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

.btn-primary {
    background: #667eea;
    color: white;
}

.btn-primary:hover {
    background: #5568d3;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background: #764ba2;
    color: white;
}

.btn-secondary:hover {
    background: #653a8a;
}

.btn-success {
    background: #48bb78;
    color: white;
}

.btn-success:hover {
    background: #38a169;
}

.btn-danger {
    background: #f56565;
    color: white;
}

.btn-danger:hover {
    background: #e53e3e;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 14px;
}

button[type="submit"] {
    width: 100%;
}

/* Alerts */
.alert {
    padding: 15px 20px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.alert ul {
    margin-left: 20px;
}

.alert-success {
    background: #c6f6d5;
    color: #22543d;
    border: 1px solid #9ae6b4;
}

.alert-danger {
    background: #fed7d7;
    color: #742a2a;
    border: 1px solid #fc8181;
}

.alert-warning {
    background: #feebc8;
    color: #7c2d12;
    border: 1px solid #fbd38d;
}

.alert-info {
    background: #bee3f8;
    color: #2c5282;
    border: 1px solid #90cdf4;
}

/* Dashboard */
.dashboard {
    max-width: 900px;
    margin: 0 auto;
}

.dashboard h2 {
    color: #667eea;
    margin-bottom: 25px;
}

.user-info {
    background: #f7fafc;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.user-info h3 {
    color: #667eea;
    margin-bottom: 15px;
}

.info-table {
    width: 100%;
}

.info-table th {
    text-align: left;
    padding: 10px;
    width: 150px;
    color: #555;
}

.info-table td {
    padding: 10px;
}

.dashboard-content {
    margin-top: 30px;
}

.dashboard-content h3 {
    color: #667eea;
    margin-bottom: 15px;
}

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

.feature-card {
    background: #f7fafc;
    padding: 20px;
    border-radius: 8px;
    border: 2px solid #e2e8f0;
}

.feature-card h4 {
    color: #667eea;
    margin-bottom: 10px;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.85em;
    font-weight: 600;
}

.badge-pending {
    background: #feebc8;
    color: #7c2d12;
}

.badge-approved {
    background: #c6f6d5;
    color: #22543d;
}

.badge-rejected {
    background: #fed7d7;
    color: #742a2a;
}

/* Admin Dashboard */
.admin-dashboard h2 {
    color: #667eea;
    margin-bottom: 25px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: #f7fafc;
    padding: 25px;
    border-radius: 8px;
    text-align: center;
    border: 2px solid #e2e8f0;
}

.stat-card h3 {
    color: #555;
    font-size: 0.9em;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.stat-number {
    font-size: 2.5em;
    font-weight: bold;
    color: #667eea;
}

.stat-pending {
    border-color: #fbd38d;
}

.stat-pending .stat-number {
    color: #ed8936;
}

.stat-approved {
    border-color: #9ae6b4;
}

.stat-approved .stat-number {
    color: #48bb78;
}

.stat-rejected {
    border-color: #fc8181;
}

.stat-rejected .stat-number {
    color: #f56565;
}

.admin-actions {
    margin-top: 30px;
}

.admin-actions h3 {
    color: #667eea;
    margin-bottom: 15px;
}

/* Tables */
.users-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.users-table th {
    background: #667eea;
    color: white;
    padding: 12px;
    text-align: left;
}

.users-table td {
    padding: 12px;
    border-bottom: 1px solid #e2e8f0;
}

.users-table tbody tr:hover {
    background: #f7fafc;
}

.action-buttons form {
    display: block;        /* Changed from inline to block */
    margin-bottom: 5px;    /* Add spacing between buttons */
}

/* Utilities */
.text-center {
    text-align: center;
}

.text-muted {
    color: #777;
    font-size: 0.9em;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    header, main {
        padding: 20px;
    }
    
    nav a {
        display: block;
        margin: 10px 0;
    }
    
    .stats-grid,
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .users-table {
        font-size: 0.9em;
    }
    
    .users-table th,
    .users-table td {
        padding: 8px;
    }
}
/* User Management Styles */
.users-table {
    font-size: 0.9em;
}

.users-table .action-buttons {
    white-space: nowrap;
}

.users-table .action-buttons form {
    display: inline-block;
    margin: 0 2px;
}

.action-btn {
    padding: 6px 12px;
    font-size: 0.85em;
    width: 100%;          /* Make buttons full width of container */
    display: block;       /* Stack vertically */
}

@media (max-width: 1200px) {
    .users-table {
        font-size: 0.8em;
    }

    .action-btn {
        font-size: 0.75em !important;
        padding: 4px 8px !important;
    }
}