

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.nav-brand {
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: #555;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: #667eea;
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.hero-section {
    text-align: center;
    padding: 100px 20px;
    color: white;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.95;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.btn {
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.btn-primary {
    background: white;
    color: #667eea;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
}

.btn-block {
    display: block;
    width: 100%;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 14px;
}

.btn-warning {
    background: #ff9800;
    color: white;
}

.btn-danger {
    background: #f44336;
    color: white;
}

.btn-success {
    background: #4caf50;
    color: white;
}

.intro-section {
    background: white;
    border-radius: 20px;
    padding: 60px;
    margin: 40px auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.intro-content {
    line-height: 1.8;
}

.intro-text {
    line-height: 1.8;
    text-align: center;
    margin-bottom: 30px;
    font-size: 22px;
    color: #555;
}

.intro-image {
    text-align: center;
    margin: 30px 0;
}

.intro-image img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.features-section {
    padding: 60px 20px;
    color: white;
}

.features-section h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 40px 30px;
    text-align: center;
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
}

.feature-card p {
    opacity: 0.9;
}

.auth-container {
    min-height: calc(100vh - 70px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.auth-box {
    background: white;
    border-radius: 20px;
    padding: 50px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 450px;
}

.auth-box h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
    font-size: 28px;
}

.auth-form {
    margin-top: 30px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
}

.form-group textarea {
    resize: vertical;
    font-family: inherit;
}

.auth-footer {
    text-align: center;
    margin-top: 25px;
    color: #777;
}

.auth-footer a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.alert-error {
    background: #ffebee;
    color: #c62828;
    border-left: 4px solid #c62828;
}

.alert-success {
    background: #e8f5e9;
    color: #2e7d32;
    border-left: 4px solid #2e7d32;
}

.alert-info {
    background: #e3f2fd;
    color: #1565c0;
    border-left: 4px solid #1565c0;
}

.dashboard-container {
    display: flex;
    min-height: calc(100vh - 70px);
    background: #f5f7fa;
}

.sidebar {
    width: 280px;
    background: white;
    padding: 30px 0;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.05);
}

.user-info {
    text-align: center;
    padding: 0 20px 30px;
    border-bottom: 1px solid #e0e0e0;
}

.avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 700;
    margin: 0 auto 15px;
}

.username {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
}

.email {
    font-size: 14px;
    color: #777;
}

.sidebar-nav {
    padding: 20px 0;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 15px 25px;
    color: #555;
    text-decoration: none;
    transition: all 0.3s;
}

.nav-item:hover,
.nav-item.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.nav-item .icon {
    margin-right: 12px;
    font-size: 20px;
}

.main-content {
    flex: 1;
    padding: 40px;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.page-header h1 {
    font-size: 32px;
    color: #333;
}

.page-header p {
    color: #777;
    margin-top: 5px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.stat-card {
    background: white;
    border-radius: 16px;
    padding: 30px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.stat-icon {
    font-size: 48px;
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
    color: #667eea;
}

.stat-label {
    color: #777;
    font-size: 14px;
    margin-top: 5px;
}

.content-section {
    background: white;
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.section-header h2 {
    font-size: 24px;
    color: #333;
}

.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.action-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px;
    padding: 30px;
    text-decoration: none;
    transition: transform 0.3s;
}

.action-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.action-icon {
    font-size: 40px;
    margin-bottom: 15px;
}

.action-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
}

.action-desc {
    opacity: 0.9;
    font-size: 14px;
}

.tickets-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.ticket-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    transition: background 0.3s;
}

.ticket-item:hover {
    background: #e9ecef;
}

.ticket-info {
    flex: 1;
}

.ticket-number {
    font-weight: 700;
    color: #667eea;
    margin-bottom: 8px;
}

.ticket-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.ticket-meta {
    display: flex;
    gap: 15px;
    align-items: center;
    font-size: 14px;
}

.priority,
.status,
.badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.priority-urgent,
.badge.priority-urgent {
    background: #ffebee;
    color: #c62828;
}

.priority-medium,
.badge.priority-medium {
    background: #fff3e0;
    color: #e65100;
}

.priority-normal,
.badge.priority-normal {
    background: #e8f5e9;
    color: #2e7d32;
}

.status-open,
.badge.status-open {
    background: #e3f2fd;
    color: #1565c0;
}

.status-closed,
.badge.status-closed {
    background: #f5f5f5;
    color: #616161;
}

.date {
    color: #777;
}

.tickets-table,
.admin-table-container {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.tickets-table table,
.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.tickets-table th,
.admin-table th {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px;
    text-align: left;
    font-weight: 600;
}

.tickets-table td,
.admin-table td {
    padding: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.tickets-table tr:last-child td,
.admin-table tr:last-child td {
    border-bottom: none;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-icon {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #555;
}

.empty-state p {
    color: #777;
    margin-bottom: 30px;
}

.ticket-info-bar {
    display: flex;
    gap: 15px;
    align-items: center;
    padding: 20px;
    background: white;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.ticket-date {
    margin-left: auto;
    color: #777;
}

.messages-container {
    background: white;
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    max-height: 600px;
    overflow-y: auto;
}

.message {
    margin-bottom: 25px;
    padding: 20px;
    border-radius: 12px;
}

.user-message {
    background: #f0f0f0;
    margin-right: 60px;
}

.admin-message {
    background: linear-gradient(135deg, #667eea15 0%, #764ba215 100%);
    margin-left: 60px;
    border-left: 4px solid #667eea;
}

.message-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 14px;
}

.message-author {
    font-weight: 600;
    color: #333;
}

.message-time {
    color: #777;
}

.message-content {
    line-height: 1.6;
    color: #555;
}

.reply-form {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.reply-form h3 {
    margin-bottom: 20px;
}

.reply-form textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 16px;
    margin-bottom: 15px;
}

.reply-form textarea:focus {
    outline: none;
    border-color: #667eea;
}

.admin-navbar {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b0764 100%);
}

.admin-navbar .nav-brand,
.admin-navbar .nav-links a {
    color: white;
}

.admin-navbar .nav-links a:hover,
.admin-navbar .nav-links a.active {
    color: #fbbf24;
}

.admin-container {
    min-height: calc(100vh - 70px);
    background: #f5f7fa;
    padding: 40px;
}

.admin-login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b0764 100%);
}

.admin-login-box {
    background: white;
    border-radius: 20px;
    padding: 50px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 450px;
}

.admin-login-header {
    text-align: center;
    margin-bottom: 30px;
}

.admin-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.admin-stat {
    background: linear-gradient(135deg, #1e3a8a15 0%, #3b076415 100%);
    border-left: 4px solid #1e3a8a;
}

.admin-action {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b0764 100%);
}

.admin-sections {
    margin-top: 40px;
}

.admin-section {
    background: white;
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.admin-section h2 {
    margin-bottom: 25px;
    color: #333;
}

.btn-group {
    display: flex;
    gap: 10px;
}

.badge-success {
    background: #e8f5e9;
    color: #2e7d32;
}

.badge-warning {
    background: #fff3e0;
    color: #e65100;
}

.badge-danger {
    background: #ffebee;
    color: #c62828;
}

.admin-intro-forms {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.intro-form-card {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.intro-form-card h3 {
    margin-bottom: 20px;
    color: #333;
}

.intro-content-list {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.intro-content-list h3 {
    margin-bottom: 25px;
    color: #333;
}

.intro-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    margin-bottom: 15px;
}

.intro-item-content {
    flex: 1;
}

.intro-item img {
    max-width: 300px;
    border-radius: 8px;
}

.text-muted {
    color: #777;
}

.settings-container {
    max-width: 800px;
}

.settings-section {
    background: white;
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.settings-section h2 {
    margin-bottom: 25px;
    color: #333;
}

.info-item {
    display: flex;
    padding: 15px 0;
    border-bottom: 1px solid #e0e0e0;
}

.info-item:last-child {
    border-bottom: none;
}

.info-item label {
    font-weight: 600;
    width: 150px;
    color: #555;
}

.info-item span {
    color: #777;
}

.settings-form {
    margin-top: 20px;
}

.footer {
    background: rgba(255, 255, 255, 0.95);
    padding: 30px 20px;
    text-align: center;
    color: #777;
    margin-top: auto;
}

@media (max-width: 768px) {
    .dashboard-container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
    }
    
    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .intro-section {
        padding: 30px 20px;
    }
    
    .auth-box {
        padding: 30px 20px;
    }
    
    .message {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    .admin-intro-forms {
        grid-template-columns: 1fr;
    }
}