/**
 * Minimal Theme CSS for VeryCoolVegas.com
 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #2c3e50;
    background: #f8f9fa;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header Styles */
.header {
    background: #ffffff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #2c3e50;
    text-decoration: none;
}

.nav {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.nav a {
    color: #2c3e50;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 4px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.nav a:hover {
    background: #e9ecef;
    border-color: #dee2e6;
    color: #2c3e50;
}

.user-welcome {
    color: #6c757d;
    font-weight: 500;
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Cards */
.card {
    background: #ffffff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
}

.card-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e9ecef;
}

.card-header h1, .card-header h2 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.card-header p {
    color: #6c757d;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    background: #2c3e50;
    color: #ffffff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn:hover {
    background: #34495e;
    color: #ffffff;
}

.btn-secondary {
    background: #6c757d;
}

.btn-secondary:hover {
    background: #5a6268;
}

.btn-danger {
    background: #dc3545;
}

.btn-danger:hover {
    background: #c82333;
}

.btn-small {
    padding: 8px 16px;
    font-size: 0.9rem;
}

.btn-full {
    width: 100%;
}

/* Forms */
.form-container {
    max-width: 500px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #2c3e50;
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    background: #ffffff;
    color: #2c3e50;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #2c3e50;
    box-shadow: 0 0 0 2px rgba(44, 62, 80, 0.1);
}

.required {
    color: #dc3545;
}

/* Grid */
.grid {
    display: grid;
    gap: 20px;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* Feature Cards */
.feature-card {
    background: #ffffff;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.feature-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.feature-card h3 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.feature-card p {
    color: #6c757d;
    margin-bottom: 15px;
}

/* Alerts */
.alert {
    padding: 15px 20px;
    border-radius: 4px;
    margin-bottom: 20px;
    border: 1px solid;
}

.alert-success {
    background: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.alert-error {
    background: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

/* Footer */
.footer {
    background: #ffffff;
    border-radius: 8px;
    padding: 20px;
    margin-top: 30px;
    text-align: center;
    border: 1px solid #e9ecef;
}

.footer-content p {
    color: #6c757d;
    margin-bottom: 10px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-links a {
    color: #2c3e50;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: #6c757d;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .header-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav {
        justify-content: center;
    }
    
    .grid-2, .grid-3 {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 10px;
    }
}

/* Admin Link Styling */
.admin-link {
    background: #2c3e50;
    color: white !important;
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.admin-link:hover {
    background: #34495e;
    color: white !important;
}

/* Admin Panel Styles */
.admin-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.admin-section {
    background: #ffffff;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.admin-section:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.section-header {
    background: #2c3e50;
    color: #ffffff;
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    user-select: none;
}

.section-header:hover {
    background: #34495e;
}

.section-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
}

.section-header p {
    margin: 5px 0 0 0;
    opacity: 0.9;
    font-size: 14px;
}

.toggle-icon {
    font-size: 20px;
    transition: transform 0.3s ease;
    margin-left: 15px;
}

.section-content {
    padding: 25px;
    overflow-y: auto;
    overflow-x: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease, margin 0.3s ease;
    resize: vertical;
    min-height: 200px;
    max-height: 600px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.section-content.collapsed {
    max-height: 0 !important;
    padding: 0 25px !important;
    margin: 0 !important;
    overflow: hidden !important;
    min-height: 0 !important;
}

.section-content::-webkit-scrollbar {
    width: 8px;
}

.section-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.section-content::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.section-content::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Info Section Styles */
.info-section {
    margin-bottom: 25px;
    padding: 0;
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #e1e5e9;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow: hidden;
}

.info-section h3 {
    margin: 0;
    padding: 20px 25px;
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    background: #f8f9fa;
    border-bottom: 1px solid #e1e5e9;
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-section .info-grid {
    padding: 25px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 15px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 4px solid #2c3e50;
}

.info-label {
    font-weight: 600;
    color: #2c3e50;
}

.info-value {
    color: #6c757d;
    font-family: monospace;
}

/* Module Management Styles */
.modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 15px;
}

.module-card {
    background: #ffffff;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.module-card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.module-card-header {
    display: flex;
    align-items: center;
    padding: 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e1e5e9;
    gap: 15px;
}

.module-icon {
    font-size: 24px;
    margin-right: 12px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #2c3e50;
    color: #ffffff;
    border-radius: 6px;
}

.module-info {
    flex: 1;
}

.module-info h4 {
    margin: 0 0 5px 0;
    color: #2c3e50;
    font-size: 16px;
}

.module-id {
    margin: 0;
    color: #6c757d;
    font-size: 12px;
    font-style: italic;
}

.module-status {
    margin-left: 10px;
}

.module-card-content {
    padding: 20px;
}

.module-description {
    margin: 0 0 15px 0;
    color: #6c757d;
    font-size: 14px;
    line-height: 1.4;
}

.module-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* User Management Styles */
.users-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
    margin-top: 15px;
}

.user-card {
    background: #ffffff;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.user-card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.user-card-header {
    display: flex;
    align-items: center;
    padding: 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e1e5e9;
    gap: 15px;
}

.user-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #2c3e50;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
}

.user-info {
    flex: 1;
}

.user-info h4 {
    margin: 0 0 5px 0;
    color: #2c3e50;
    font-size: 16px;
}

.user-username {
    margin: 0 0 3px 0;
    color: #6c757d;
    font-size: 14px;
    font-style: italic;
}

.user-email {
    margin: 0;
    color: #6c757d;
    font-size: 13px;
}

.user-status {
    display: flex;
    flex-direction: column;
    gap: 5px;
    align-items: flex-end;
}

.user-card-content {
    padding: 20px;
}

.user-details {
    margin-bottom: 15px;
}

.user-details p {
    margin: 0 0 8px 0;
    font-size: 14px;
    color: #6c757d;
}

.user-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* Group Management Styles */
.groups-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 15px;
}

.group-card {
    background: #ffffff;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.group-card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.group-card-header {
    padding: 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e1e5e9;
}

.group-card-header h4 {
    margin: 0 0 8px 0;
    color: #2c3e50;
    font-size: 16px;
}

.group-card-header p {
    margin: 0;
    color: #6c757d;
    font-size: 14px;
}

.group-card-content {
    padding: 20px;
}

.group-card-content p {
    margin: 0 0 8px 0;
    font-size: 14px;
    color: #6c757d;
}

/* Theme Management Styles */
.themes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 15px;
}

.theme-card {
    background: #ffffff;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.theme-card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.theme-card.active {
    border-color: #2c3e50;
    box-shadow: 0 4px 8px rgba(44, 62, 80, 0.3);
}

.theme-preview {
    height: 120px;
    position: relative;
    overflow: hidden;
}

.theme-preview-content {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.preview-header {
    height: 30px;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.preview-body {
    height: calc(100% - 30px);
    padding: 10px;
}

.theme-info {
    padding: 15px;
}

.theme-info h4 {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
}

.theme-info p {
    margin: 0 0 15px 0;
    color: #6c757d;
    font-size: 14px;
    line-height: 1.4;
}

.theme-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Status and Role Badges */
.status-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-active {
    background: #d4edda;
    color: #155724;
}

.status-inactive {
    background: #f8d7da;
    color: #721c24;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

.role-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.role-admin {
    background: #dc3545;
    color: white;
}

.role-moderator {
    background: #fd7e14;
    color: white;
}

.role-user {
    background: #6c757d;
    color: white;
}

/* Button Variants */
.btn-small {
    padding: 6px 12px;
    font-size: 12px;
}

.btn-disabled {
    background: #6c757d;
    color: #fff;
    cursor: not-allowed;
    opacity: 0.6;
}

.btn-disabled:hover {
    background: #6c757d;
    transform: none;
}

/* Modal Styles */
.modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: 8px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid #e1e5e9;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
    border-radius: 8px 8px 0 0;
}

.modal-header h3 {
    margin: 0;
    color: #2c3e50;
}

.close {
    font-size: 28px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
    line-height: 1;
}

.close:hover {
    color: #000;
}

.modal-body {
    padding: 20px;
}

/* Activity List Styles */
.activity-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 25px;
}

.activity-item {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #e1e5e9;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: all 0.2s ease;
}

.activity-item:hover {
    background: #ffffff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.activity-user {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.activity-username {
    color: #6c757d;
    font-size: 14px;
    font-style: italic;
}

.activity-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #6c757d;
}

.activity-time {
    font-weight: 500;
}

.activity-ip {
    font-family: monospace;
    background: #f1f3f4;
    padding: 2px 6px;
    border-radius: 3px;
}

/* Empty State Styles */
.no-modules, .no-users, .no-groups {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
    font-style: italic;
}

/* Form Row Styles */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .modules-grid, .themes-grid, .users-grid, .groups-grid {
        grid-template-columns: 1fr;
    }
    
    .module-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .module-status {
        margin-left: 0;
        align-self: flex-end;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .activity-details {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .activity-user {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}