/* General Body and Background Styles */
body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(300deg, #f5f3ff, #eef2ff, #fde2e4);
    background-size: 180% 180%;
    animation: dreamy-gradient-animation 18s ease infinite;
    color: #334155; /* slate-700 */
    margin: 0;
    overflow-x: hidden;
    line-height: 1.6;
}

@keyframes dreamy-gradient-animation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Container */
.container {
    width: 100%;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem; /* 24px */
    padding-right: 1.5rem;
}

/* Header and Navigation */
.site-header {
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #e2e8f0;
}
.header-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}
.logo-link {
    font-size: 1.5rem; /* 24px */
    font-weight: 800;
    color: #1e293b; /* slate-800 */
    text-decoration: none;
}
.nav-links {
    display: none; /* Hidden on mobile */
}
@media (min-width: 768px) {
    .nav-links {
        display: flex;
        gap: 2rem; /* 32px */
    }
}
.nav-links a {
    font-weight: 500;
    color: #475569; /* slate-600 */
    text-decoration: none;
    transition: color 0.2s;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
}
.nav-links a:hover, .nav-links a.active {
    color: #7c3aed; /* violet-600 */
    background-color: rgba(124, 58, 237, 0.1);
}
.logout-button {
    background-color: #dc2626; /* red-600 */
    color: white;
    padding: 0.625rem 1.25rem; /* 10px 20px */
    border-radius: 0.5rem; /* 8px */
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
}
.logout-button:hover {
    background-color: #b91c1c; /* red-700 */
}

/* Main Content */
main.container {
    padding-top: 6rem; /* Account for fixed header */
    padding-bottom: 4rem;
}

/* Page Header */
.page-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}
.back-button {
    position: absolute;
    left: 0;
    top: 0;
    background: none;
    border: none;
    color: #7c3aed;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: underline;
    padding: 0.5rem 0;
}
.back-button:hover {
    color: #6d28d9;
}
.page-title {
    font-size: 2.25rem; /* 36px */
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 0.5rem;
}
.page-subtitle {
    font-size: 1.125rem;
    color: #475569;
    max-width: 32rem;
    margin: 0 auto;
}

/* Grid Layout */
.grid-layout {
    display: grid;
    gap: 2rem;
    margin-bottom: 2rem;
}

/* Cards */
.card {
    background-color: rgba(255, 255, 255, 0.9);
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid #e2e8f0; /* slate-200 */
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    transition: transform 0.3s, box-shadow 0.3s;
}
.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
}

/* Stat Cards */
.stat-card {
    text-align: center;
}
.stat-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.3s, box-shadow 0.3s;
}
.stat-link:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
}
.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: #7c3aed;
    margin-bottom: 0.5rem;
}
.stat-label {
    font-size: 1rem;
    color: #475569;
}

/* Event Cards */
.event-card-container {
    margin-bottom: 20px;
}

.event-card {
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.card-content {
    padding: 20px;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
    flex: 1;
}

.card-actions {
    position: relative;
}

.action-menu-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.375rem;
    transition: background-color 0.2s;
    color: #6b7280;
}

.action-menu-btn:hover {
    background-color: #f3f4f6;
}

.action-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
    z-index: 10;
    min-width: 160px;
    display: none;
}

.action-menu:not(.hidden) {
    display: block;
}

.action-menu button {
    width: 100%;
    padding: 0.75rem 1rem;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    font-size: 0.875rem;
    color: #374151;
    transition: background-color 0.2s;
}

.action-menu button:hover {
    background-color: #f3f4f6;
}

.card-details {
    margin-bottom: 15px;
}

.card-venue,
.card-date,
.card-time {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 5px;
}

.card-status {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.status-approved {
    background-color: #dcfce7;
    color: #166534;
}

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

.status-past {
    background-color: #e2e8f0;
    color: #475569;
}

.card-metric {
    font-size: 0.875rem;
    color: #374151;
    font-weight: 500;
    margin: 0;
}

/* Registered Students List */
.registered-students-list {
    margin-top: 1.5rem;
}
.list-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1rem;
}
.student-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background-color: #f8fafc;
    border-radius: 0.5rem;
    margin-bottom: 0.5rem;
}
.student-icon {
    width: 2rem;
    height: 2rem;
    color: #7c3aed;
}
.student-info {
    flex: 1;
}
.student-name {
    font-weight: 500;
    color: #1e293b;
    margin-bottom: 0.25rem;
}
.student-department {
    font-size: 0.875rem;
    color: #64748b;
}

/* Forms */
.event-form {
    max-width: 100%;
}
.form-grid {
    display: grid;
    gap: 1.5rem;
}
@media (min-width: 768px) {
    .form-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
.form-group {
    display: flex;
    flex-direction: column;
}
.time-group {
    display: flex;
    gap: 1rem;
}
@media (max-width: 767px) {
    .time-group {
        flex-direction: column;
        gap: 1.5rem;
    }
}
.form-group.full-width {
    grid-column: 1 / -1;
}
.form-label {
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.form-icon {
    width: 1.25rem;
    height: 1.25rem;
    color: #7c3aed;
    flex-shrink: 0;
}
.form-input {
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: #ffffff;
}
.form-input:focus {
    outline: none;
    border-color: #7c3aed;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
    transform: translateY(-1px);
}
.photo-input {
    cursor: pointer;
    background-color: #f8fafc;
    border: 2px dashed #d1d5db;
}
.photo-input:hover {
    border-color: #7c3aed;
    background-color: #f1f5f9;
}
.file-upload {
    cursor: pointer;
}
.upload-area {
    border: 2px dashed #d1d5db;
    border-radius: 0.5rem;
    padding: 2rem;
    text-align: center;
    background-color: #f8fafc;
    transition: all 0.3s ease;
}
.upload-area:hover {
    border-color: #7c3aed;
    background-color: #f1f5f9;
}
.upload-icon {
    width: 3rem;
    height: 3rem;
    color: #7c3aed;
    margin-bottom: 1rem;
}
.upload-text {
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
}
.upload-subtext {
    font-size: 0.875rem;
    color: #64748b;
}
.custom-select {
    position: relative;
}
.select-selected {
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    background-color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}
.select-selected:hover {
    border-color: #7c3aed;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}
.select-items {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
    z-index: 10;
    max-height: 200px;
    overflow-y: auto;
}
.select-item {
    padding: 0.75rem;
    cursor: pointer;
    transition: background-color 0.2s;
}
.select-item:hover {
    background-color: #f3f4f6;
}
.select-item.selected {
    background-color: #ede9fe;
    color: #7c3aed;
    font-weight: 500;
}
.select-hide {
    display: none;
}
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}
.card-actions {
    position: relative;
}
.action-menu-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.375rem;
    transition: background-color 0.2s;
}
.action-menu-btn:hover {
    background-color: #f3f4f6;
}
.action-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
    z-index: 10;
    min-width: 160px;
}
.action-menu.hidden {
    display: none;
}
.action-menu button {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.2s;
}
.action-menu button:hover {
    background-color: #f3f4f6;
}
.card-date {
    color: #6b7280;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}
.card-metric {
    color: #374151;
    font-weight: 500;
    font-size: 0.875rem;
    margin-top: 0.5rem;
}
.registration-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}
.form-button.secondary {
    background-color: #6b7280;
}
.form-button.secondary:hover {
    background-color: #4b5563;
}
/* Event Detail Layout - Two Column */
.event-detail-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
    margin-bottom: 3rem;
}
@media (max-width: 1024px) {
    .event-detail-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}
.event-details-left {
    grid-column: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.event-photo-right {
    grid-column: 2;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.event-photo-right img {
    width: 100%;
    height: auto;
    border-radius: 0.5rem;
    object-fit: cover;
    max-width: 100%;
}
.event-description-section {
    font-size: 1.125rem;
    line-height: 1.6;
    color: #374151;
    margin-bottom: 1rem;
}
.event-core-details-card {
    background-color: rgba(255, 255, 255, 0.9);
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
}
.event-core-details-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1.5rem;
}
.event-detail-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}
.detail-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
.detail-item strong {
    font-weight: 600;
    color: #374151;
}
.detail-item span {
    color: #6b7280;
}
.event-actions-section {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.registration-actions-card {
    background-color: rgba(255, 255, 255, 0.9);
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
}
.registration-actions-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1.5rem;
}
.registration-actions-section {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.form-button {
    background-color: #7c3aed;
    color: white;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: flex-start;
    box-shadow: 0 4px 6px -1px rgba(124, 58, 237, 0.2);
}
.form-button:hover {
    background-color: #6d28d9;
    transform: translateY(-2px);
    box-shadow: 0 8px 12px -2px rgba(124, 58, 237, 0.3);
}
.form-button:active {
    transform: translateY(0);
}

/* Tabs */
.tab-nav {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid #e2e8f0;
}
.tab-button {
    padding: 0.75rem 1.5rem;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    font-weight: 500;
    color: #64748b;
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s;
}
.tab-button.active {
    color: #7c3aed;
    border-bottom-color: #7c3aed;
}
.tab-content {
    display: none;
}
.tab-content.active {
    display: block;
}

/* Dashboard Sections */
.dashboard-section {
    display: none;
}
.dashboard-section.active {
    display: block;
}

/* Request Event Section Background */
#request-event {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="floral" patternUnits="userSpaceOnUse" width="30" height="30"><circle cx="15" cy="15" r="1.5" fill="%23f1f5f9"/><circle cx="7.5" cy="22.5" r="0.8" fill="%23e2e8f0"/><circle cx="22.5" cy="7.5" r="0.8" fill="%23e2e8f0"/></pattern></defs><rect width="100" height="100" fill="url(%23floral)"/></svg>');
    background-size: 30px 30px;
    background-repeat: repeat;
    padding: 2.5rem;
    border-radius: 1rem;
    margin-bottom: 2rem;
    box-shadow: 0 8px 16px -4px rgba(0,0,0,0.1);
}

/* Quick Actions */
.quick-actions {
    margin-top: 3rem;
    text-align: center;
}
.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1.5rem;
}
.actions-grid {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}
.action-button {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
}
.action-button.primary {
    background-color: #7c3aed;
    color: white;
}
.action-button.primary:hover {
    background-color: #6d28d9;
    transform: translateY(-2px);
    box-shadow: 0 8px 12px -2px rgba(124, 58, 237, 0.3);
}
.action-button.secondary {
    background-color: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
}
.action-button.secondary:hover {
    background-color: #e2e8f0;
    transform: translateY(-2px);
    box-shadow: 0 8px 12px -2px rgba(0,0,0,0.1);
}
.action-button.danger {
    background-color: #fee2e2;
    color: #dc2626;
    border: 1px solid #fecaca;
}
.action-button.danger:hover {
    background-color: #fecaca;
    transform: translateY(-2px);
    box-shadow: 0 8px 12px -2px rgba(220, 38, 38, 0.3);
}

/* Loading State */
.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e5e7eb;
    border-top: 4px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 16px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-state p {
    color: #6b7280;
    font-size: 16px;
    margin: 0;
}

/* Dashboard Widgets */
.widgets-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 3rem;
}
.widget {
    background-color: rgba(255, 255, 255, 0.9);
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
}
.widget-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1.5rem;
}
.widget-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.widget-item {
    padding: 1rem;
    background-color: #f8fafc;
    border-radius: 0.5rem;
    border: 1px solid #e2e8f0;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: stretch;
    min-height: 80px;
}
.widget-item:hover {
    background-color: #f1f5f9;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
}
.widget-item-image {
    width: 60px;
    height: 100%;
    background-size: cover;
    background-position: center;
    border-radius: 0.5rem;
    flex-shrink: 0;
    margin-right: 1rem;
}
.widget-item-content {
    flex: 1;
}
.widget-item-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.5rem;
}
.widget-item-date {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 0.25rem;
}
.widget-item-metric {
    font-size: 0.875rem;
    color: #374151;
    font-weight: 500;
}

/* Action Menu Styles */
.action-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: white;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    z-index: 10;
    min-width: 160px;
    display: none;
}
.action-menu:not(.hidden) {
    display: block;
}
.action-menu button {
    width: 100%;
    padding: 0.75rem 1rem;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    font-size: 0.875rem;
    color: #374151;
    transition: background-color 0.2s;
}
.action-menu button:hover {
    background-color: #f3f4f6;
}
.action-menu button:first-child {
    border-radius: 0.5rem 0.5rem 0 0;
}
.action-menu button:last-child {
    border-radius: 0 0 0.5rem 0.5rem;
}
.action-menu button:only-child {
    border-radius: 0.5rem;
}

/* Members Management */
.members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}
.member-card {
    background-color: rgba(255, 255, 255, 0.9);
    padding: 1.5rem;
    border-radius: 1rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: transform 0.3s, box-shadow 0.3s;
}
.member-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 12px -2px rgba(0,0,0,0.15), 0 4px 6px -1px rgba(0,0,0,0.1);
}
.member-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex: 1;
}
.member-avatar {
    flex-shrink: 0;
}
.member-avatar img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}
.member-info {
    flex: 1;
}
.member-name {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 0.5rem 0;
}
.role-badge {
    display: inline-block;
    background-color: #7c3aed;
    color: white;
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    margin-bottom: 0.25rem;
}
.member-email {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0;
}
.member-actions {
    display: flex;
    gap: 0.5rem;
}
.action-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 0.5rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.875rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.edit-btn {
    background-color: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
}
.edit-btn:hover {
    background-color: #e2e8f0;
}
.remove-btn {
    background-color: #fee2e2;
    color: #dc2626;
    border: 1px solid #fecaca;
}
.remove-btn:hover {
    background-color: #fecaca;
}
.add-member-section {
    text-align: center;
    margin-top: 2rem;
}
.add-member-btn {
    padding: 0.75rem 2rem;
    background-color: #7c3aed;
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(124, 58, 237, 0.3);
}
.add-member-btn:hover {
    background-color: #6d28d9;
    transform: translateY(-2px);
    box-shadow: 0 8px 12px -2px rgba(124, 58, 237, 0.4);
}

/* Search Section */
.search-section {
    margin-bottom: 2rem;
}
.search-input {
    width: 100%;
    max-width: 400px;
    padding: 0.75rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}
.search-input:focus {
    outline: none;
    border-color: #7c3aed;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}
.modal-overlay.hidden {
    display: none;
}
.modal-content {
    background-color: white;
    border-radius: 1rem;
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
}
.modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e293b;
}
.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #6b7280;
    padding: 0.25rem;
    border-radius: 0.25rem;
    transition: background-color 0.3s ease;
}
.modal-close:hover {
    background-color: #f3f4f6;
    color: #374151;
}
.member-form {
    padding: 1.5rem;
}
.member-form .form-group {
    margin-bottom: 1.5rem;
}
.member-form .form-label {
    display: block;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
}
.member-form .form-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}
.member-form .form-input:focus {
    outline: none;
    border-color: #7c3aed;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}
.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
}
.cancel-btn {
    padding: 0.75rem 1.5rem;
    background-color: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s ease;
}
.cancel-btn:hover {
    background-color: #e5e7eb;
}
.submit-btn {
    padding: 0.75rem 1.5rem;
    background-color: #7c3aed;
    color: white;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s ease;
}
.submit-btn:hover {
    background-color: #6d28d9;
}

/* Confirmation Modal */
.confirm-modal {
    max-width: 400px;
}
.confirm-content {
    padding: 1.5rem;
    text-align: center;
}
.confirm-content p {
    margin: 0 0 2rem 0;
    color: #374151;
    font-size: 1.1rem;
}
.confirm-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}
.confirm-actions .remove-btn {
    background-color: #dc2626;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s ease;
}
.confirm-actions .remove-btn:hover {
    background-color: #b91c1c;
}

/* Responsive Design */
@media (max-width: 767px) {
    .hero-headline {
        font-size: 2rem;
    }
    .features-grid {
        grid-template-columns: 1fr;
    }
    .form-grid {
        grid-template-columns: 1fr;
    }
    .tab-nav {
        flex-direction: column;
        gap: 0.5rem;
    }
    .widgets-layout {
        grid-template-columns: 1fr;
    }
    .actions-grid {
        flex-direction: column;
        align-items: center;
    }
    .members-grid {
        grid-template-columns: 1fr;
    }
    .member-card {
        flex-direction: column;
        text-align: center;
    }
    .member-content {
        flex-direction: column;
        gap: 1rem;
    }
    .member-actions {
        justify-content: center;
    }
    .search-input {
        max-width: 100%;
    }
    .modal-content {
        width: 95%;
        margin: 1rem;
    }
    .form-actions {
        flex-direction: column;
    }
    .confirm-actions {
        flex-direction: column;
    }
}
