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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

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

header {
    text-align: center;
    color: white;
    margin-bottom: 40px;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
}

.login-section {
    background: white;
    border-radius: 12px;
    padding: 40px;
    max-width: 400px;
    margin: 0 auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.login-section h2 {
    margin-bottom: 20px;
    color: #333;
}

.login-section input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    margin-bottom: 15px;
}

.login-section button {
    width: 100%;
    padding: 12px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.login-section button:hover {
    background: #5568d3;
}

.error {
    color: #e53e3e;
    margin-top: 10px;
    font-size: 0.9rem;
}

.dashboard {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 10px;
}

.tab {
    padding: 10px 20px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    color: #666;
    transition: all 0.3s;
}

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

.tab.logout {
    margin-left: auto;
    color: #e53e3e;
}

.tab.logout:hover {
    background: #fee;
    border-radius: 8px;
}

.tab-content {
    display: none;
}

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

.tab-content h2 {
    margin-bottom: 20px;
    color: #333;
}

.refresh-btn {
    padding: 8px 16px;
    background: #48bb78;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

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

.add-user-form {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.add-user-form input {
    flex: 1;
    padding: 10px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 1rem;
}

.add-user-form button {
    padding: 10px 20px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
}

.add-user-form button:hover {
    background: #5568d3;
}

.requests-list, .users-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.request-card, .user-card {
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
}

.request-header, .user-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #cbd5e0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.request-info, .user-info {
    flex: 1;
}

.email {
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 5px;
}

.meta {
    font-size: 0.85rem;
    color: #718096;
}

.actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.2s;
}

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

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

.btn-temp {
    background: #ed8936;
    color: white;
}

.btn-temp:hover {
    background: #dd6b20;
}

.btn-deny {
    background: #e53e3e;
    color: white;
}

.btn-deny:hover {
    background: #c53030;
}

.btn-remove {
    background: #e53e3e;
    color: white;
}

.btn-remove:hover {
    background: #c53030;
}

.status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-pending {
    background: #fef3c7;
    color: #92400e;
}

.status-approved {
    background: #d1fae5;
    color: #065f46;
}

.status-denied {
    background: #fee2e2;
    color: #991b1b;
}

.expires {
    color: #e53e3e;
    font-weight: 600;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #718096;
}

.empty-state-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}
