/* Admin styles for Consent Angel */

/* Dashboard styles */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background-color: white;
    border-radius: 0.5rem;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.stat-card h3 {
    font-size: 1rem;
    color: #6b7280;
    margin-bottom: 0.5rem;
}

.stat-card .stat-value {
    font-size: 1.875rem;
    font-weight: 600;
    color: #111827;
}

/* Admin navigation */
.admin-nav {
    background-color: #1f2937;
    color: white;
    width: 280px;
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    overflow-y: auto;
    transition: transform 0.3s ease;
    z-index: 50;
}

.admin-nav-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-nav-items {
    padding: 1rem 0;
}

.admin-nav-item {
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.7);
    transition: background-color 0.2s ease, color 0.2s ease;
}

.admin-nav-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

.admin-nav-item.active {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border-left: 3px solid #3b82f6;
}

.admin-nav-item svg {
    margin-right: 0.75rem;
}

/* Admin content area */
.admin-content {
    margin-left: 280px;
    padding: 2rem;
    min-height: 100vh;
    background-color: #f3f4f6;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .admin-nav {
        transform: translateX(-100%);
    }
    
    .admin-nav.open {
        transform: translateX(0);
    }
    
    .admin-content {
        margin-left: 0;
    }
}

/* Module and Tier management styles */
.module-list, .tier-list {
    margin-top: 1.5rem;
}

.module-item, .tier-item {
    background-color: white;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.module-header, .tier-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.module-title, .tier-title {
    font-weight: 600;
    font-size: 1.125rem;
}

.module-description, .tier-description {
    color: #6b7280;
    margin-bottom: 1rem;
}

.module-actions, .tier-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
}

/* Client and Event detail pages */
.detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.detail-title {
    font-size: 1.5rem;
    font-weight: 600;
}

.detail-actions {
    display: flex;
    gap: 0.5rem;
}

.detail-section {
    background-color: white;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.detail-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.detail-section-title {
    font-size: 1.25rem;
    font-weight: 600;
}

/* Form styles */
.form-section {
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
}

.form-select {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    background-color: white;
}

.form-checkbox {
    margin-right: 0.5rem;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

/* Button styles */
.btn {
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.btn-primary {
    background-color: #3b82f6;
    color: white;
}

.btn-primary:hover {
    background-color: #2563eb;
}

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

.btn-secondary:hover {
    background-color: #4b5563;
}

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

.btn-danger:hover {
    background-color: #dc2626;
}

/* Table styles */
.table-container {
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th {
    text-align: left;
    padding: 0.75rem;
    background-color: #f9fafb;
    font-weight: 600;
    border-bottom: 1px solid #e5e7eb;
}

.table td {
    padding: 0.75rem;
    border-bottom: 1px solid #e5e7eb;
}

.table tr:hover {
    background-color: #f9fafb;
}

/* Pagination styles */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
}

.pagination-item {
    padding: 0.5rem 0.75rem;
    margin: 0 0.25rem;
    border-radius: 0.375rem;
    cursor: pointer;
}

.pagination-item.active {
    background-color: #3b82f6;
    color: white;
}

.pagination-item:hover:not(.active) {
    background-color: #f3f4f6;
}

/* Alert styles */
.alert {
    padding: 1rem;
    border-radius: 0.375rem;
    margin-bottom: 1rem;
}

.alert-success {
    background-color: #d1fae5;
    color: #065f46;
}

.alert-danger {
    background-color: #fee2e2;
    color: #b91c1c;
}

.alert-warning {
    background-color: #fef3c7;
    color: #92400e;
}

.alert-info {
    background-color: #dbeafe;
    color: #1e40af;
}

/* Module and Tier management specific styles */
.module-tier-management {
    max-width: 800px;
    margin: 0 auto;
}

.tier-group {
    margin-bottom: 2rem;
}

.tier-group-header {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.module-checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.module-checkbox-item {
    display: flex;
    align-items: center;
    padding: 0.5rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.375rem;
    background-color: white;
}

.module-checkbox-item:hover {
    background-color: #f9fafb;
}

.select-all-actions {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.pricing-placeholder {
    color: #9ca3af;
    font-style: italic;
}
