* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.container {
    width: 100%;
    max-width: 1200px;
    padding: 20px;
}

.welcome-card, .form-card {
    background: white;
    border-radius: 10px;
    padding: 40px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 400px;
    margin: 0 auto;
}

.welcome-card h1 {
    color: #333;
    margin-bottom: 10px;
    font-size: 2rem;
}

.welcome-card p {
    color: #666;
    margin-bottom: 30px;
}

.form-card h2 {
    color: #333;
    margin-bottom: 30px;
    font-size: 1.8rem;
}

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

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

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

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

.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;
    margin: 5px;
}

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

.btn-primary:hover {
    background: #5a6fd8;
    transform: translateY(-2px);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
}

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

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

.button-group {
    margin-top: 20px;
}

.form-footer {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e1e1e1;
}

.form-footer a {
    color: #667eea;
    text-decoration: none;
}

.form-footer a:hover {
    text-decoration: underline;
}

.message {
    margin-top: 20px;
}

.success {
    background: #d4edda;
    color: #155724;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #c3e6cb;
}

.error {
    background: #f8d7da;
    color: #721c24;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #f5c6cb;
}

/* Dashboard Styles */
.dashboard, .admin-panel {
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    margin: 0 auto;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e1e1e1;
}

.header h2 {
    color: #333;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-info span {
    color: #666;
    font-weight: 500;
}

.data-section, .users-section {
    margin-top: 30px;
}

.data-section h3, .users-section h3 {
    color: #333;
    margin-bottom: 20px;
}

/* Admin Panel Styles */
.admin-panel {
    max-width: 1000px;
}

.user-card {
    background: #f8f9fa;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.user-card h4 {
    color: #333;
    margin-bottom: 10px;
}

.user-card p {
    color: #666;
    margin-bottom: 5px;
}

.user-data {
    margin: 15px 0;
    padding: 15px;
    background: white;
    border-radius: 5px;
}

.user-actions {
    margin-top: 15px;
}

/* Modal Styles */
.modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    position: relative;
}

.close {
    position: absolute;
    right: 15px;
    top: 15px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #aaa;
}

.close:hover {
    color: #000;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .welcome-card, .form-card {
        padding: 20px;
    }
    
    .dashboard, .admin-panel {
        padding: 20px;
    }
    
    .header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .user-info {
        flex-direction: column;
        gap: 10px;
    }
}

/* Tab Navigation */
.tab-navigation {
    display: flex;
    margin-bottom: 30px;
    border-bottom: 2px solid #e1e1e1;
}

.tab-btn {
    background: none;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
}

.tab-btn:hover {
    color: #333;
    background: #f8f9fa;
}

.tab-btn.active {
    color: #667eea;
    border-bottom-color: #667eea;
    background: #f8f9fa;
}

/* Tab Content */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Entries Section */
.entries-section {
    margin-top: 20px;
}

.entries-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 5px;
}

.entries-stats span {
    font-weight: 500;
    color: #333;
}

/* Table Styles */
.table-container {
    overflow-x: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.entries-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    min-width: 800px;
}

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

.entries-table th {
    background: #667eea;
    color: white;
    font-weight: 500;
    position: sticky;
    top: 0;
}

.entries-table tr:hover {
    background: #f8f9fa;
}

.entries-table .no-entries {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 40px;
}

.entries-table .actions {
    white-space: nowrap;
}

.btn-small {
    padding: 6px 12px;
    font-size: 14px;
    margin-right: 5px;
}

/* Form Enhancements */
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e1e1e1;
    border-radius: 5px;
    font-size: 16px;
    font-family: inherit;
    resize: vertical;
    min-height: 80px;
    transition: border-color 0.3s;
}

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

/* Button Groups */
.button-group {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

/* Enhanced Modal */
.modal-content {
    max-height: 90vh;
    overflow-y: auto;
}

/* Responsive Design for Tables */
@media (max-width: 768px) {
    .table-container {
        font-size: 14px;
    }
    
    .entries-table th,
    .entries-table td {
        padding: 8px;
    }
    
    .btn-small {
        padding: 4px 8px;
        font-size: 12px;
    }
    
    .tab-btn {
        padding: 10px 16px;
        font-size: 14px;
    }
    
    .entries-stats {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .button-group {
        flex-direction: column;
    }
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #667eea;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Enhanced Success/Error Messages */
.success {
    animation: slideIn 0.3s ease-out;
}

.error {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Password Reset Specific Styles */
.form-card small {
    color: #666;
    font-size: 12px;
    margin-top: 5px;
    display: block;
}

.form-group input:invalid {
    border-color: #dc3545;
}

.form-group input:valid {
    border-color: #28a745;
}

/* Loading state for buttons */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: #6c757d;
}

.btn:disabled:hover {
    background: #6c757d;
    transform: none;
}

/* Password strength indicator */
.password-strength {
    margin-top: 5px;
    font-size: 12px;
}

.password-strength.weak {
    color: #dc3545;
}

.password-strength.medium {
    color: #ffc107;
}

.password-strength.strong {
    color: #28a745;
}
/* Admin Panel Enhancements */
.user-entries {
    margin: 15px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 5px;
    border-left: 4px solid #667eea;
}

.user-entries h5 {
    color: #333;
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 600;
}

.entry-preview {
    background: white;
    padding: 10px;
    margin-bottom: 8px;
    border-radius: 4px;
    border: 1px solid #e1e1e1;
}

.entry-preview:last-child {
    margin-bottom: 0;
}

.entry-preview strong {
    color: #333;
    font-size: 14px;
}

.entry-preview p {
    color: #666;
    font-size: 13px;
    margin: 4px 0;
}

.entry-preview small {
    color: #999;
    font-size: 12px;
}

/* Stats styling */
.users-stats, .entries-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.users-stats span, .entries-stats span {
    font-weight: 600;
    font-size: 16px;
}

/* Enhanced table for admin */
.entries-table th {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
}

.entries-table tr:nth-child(even) {
    background: #f8f9fa;
}

.entries-table tr:hover {
    background: #e3f2fd;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

/* Admin user cards enhancement */
.user-card {
    transition: all 0.3s ease;
    border-left: 4px solid #667eea;
}

.user-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Responsive admin panel */
@media (max-width: 768px) {
    .users-stats, .entries-stats {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .entry-preview {
        padding: 8px;
    }
    
    .entry-preview strong {
        font-size: 13px;
    }
    
    .entry-preview p {
        font-size: 12px;
    }
    
    .user-entries h5 {
        font-size: 13px;
    }
}

/* Loading animation for admin */
.admin-panel.loading {
    position: relative;
}

.admin-panel.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 1000;
}

/* Enhanced modal for admin */
.modal-content h3 {
    color: #333;
    border-bottom: 2px solid #667eea;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

/* Status indicators */
.status-verified {
    color: #28a745;
    font-weight: 600;
}

.status-unverified {
    color: #dc3545;
    font-weight: 600;
}

.status-admin {
    color: #667eea;
    font-weight: 600;
}
/* Role and Status Badges */
.role-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.role-admin {
    background: #dc3545;
    color: white;
}

.role-manager {
    background: #fd7e14;
    color: white;
}

.role-user {
    background: #28a745;
    color: white;
}

.status-active {
    color: #28a745;
    font-weight: 600;
}

.status-pending {
    color: #ffc107;
    font-weight: 600;
}

.status-suspended {
    color: #dc3545;
    font-weight: 600;
}

/* Stats Section */
.stats-section {
    margin-bottom: 30px;
}

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

.stat-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.stat-card h3 {
    font-size: 2.5rem;
    margin: 0 0 10px 0;
    font-weight: 700;
}

.stat-card p {
    margin: 0;
    font-size: 14px;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Section Headers */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e1e1e1;
}

.section-header h3 {
    margin: 0;
    color: #333;
}

.section-actions {
    display: flex;
    gap: 10px;
}

/* Filters Section */
.filters-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #e1e1e1;
}

.filter-group {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.search-input {
    flex: 1;
    min-width: 200px;
    padding: 10px 15px;
    border: 2px solid #e1e1e1;
    border-radius: 25px;
    font-size: 14px;
    transition: border-color 0.3s;
}

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

.filter-select, .filter-input {
    padding: 10px 15px;
    border: 2px solid #e1e1e1;
    border-radius: 5px;
    font-size: 14px;
    background: white;
    transition: border-color 0.3s;
}

.filter-select:focus, .filter-input:focus {
    outline: none;
    border-color: #667eea;
}

/* Invitation Info */
.invitation-info {
    margin-bottom: 30px;
}

.info-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.info-card h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.info-card p {
    margin-bottom: 8px;
    font-size: 14px;
}

.info-card strong {
    font-weight: 600;
}

/* Invitation Steps */
.invitation-steps {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    border-left: 4px solid #667eea;
}

.invitation-steps h4 {
    color: #333;
    margin-bottom: 15px;
}

.invitation-steps ol {
    margin: 0;
    padding-left: 20px;
}

.invitation-steps li {
    margin-bottom: 8px;
    color: #666;
}

/* Invite Section */
.invite-section {
    max-width: 600px;
    margin: 0 auto;
    background: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    border: 1px solid #e1e1e1;
}

.invite-section h3 {
    text-align: center;
    color: #333;
    margin-bottom: 25px;
}

/* Enhanced User Cards */
.user-card {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.user-info h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* Message Types */
.message .info {
    background: #d1ecf1;
    color: #0c5460;
    padding: 15px;
    border-radius: 5px;
    border: 1px solid #bee5eb;
}

/* Responsive Design */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .section-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .section-actions {
        justify-content: center;
    }
    
    .filter-group {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-input {
        min-width: auto;
    }
    
    .user-info h4 {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .role-badge {
        align-self: flex-start;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-card h3 {
        font-size: 2rem;
    }
    
    .invite-section {
        padding: 20px;
    }
}

/* Animation for new elements */
.stat-card {
    animation: slideInUp 0.6s ease-out;
}

.user-card {
    animation: fadeIn 0.4s ease-out;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Export button styling */
.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Enhanced table styling */
.entries-table th:first-child,
.entries-table td:first-child {
    position: sticky;
    left: 0;
    background: inherit;
    z-index: 1;
}

.entries-table th:first-child {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Loading states for async operations */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}