/* CSS Variables */
:root {
    --primary: #2C3E50;
    --secondary: #1ABC9C;
    --accent: #E74C3C;
    --light: #ECF0F1;
    --dark: #2C3E50;
    --success: #2ECC71;
    --warning: #F39C12;
    --danger: #E74C3C;
    --gray: #95A5A6;
    --font-main: 'Montserrat', sans-serif;
}

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

body {
    font-family: var(--font-main);
    background-color: #f8f9fa;
    color: var(--dark);
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header Styles */
header {
    background: var(--primary);
    color: white;
    padding: 15px 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 24px;
    font-weight: 700;
}

.logo span {
    color: var(--secondary);
}

.logo p {
    font-size: 14px;
    opacity: 0.8;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

nav ul li a:hover, nav ul li a.active {
    color: var(--secondary);
}

.user-menu {
    display: flex;
    align-items: center;
}

.user-menu span {
    margin-left: 10px;
}

/* Main Content */
main {
    flex: 1;
    padding: 30px 0;
}

.landing-page {
    text-align: center;
}

.hero {
    padding: 60px 0;
    background: linear-gradient(135deg, var(--primary) 0%, #34495e 100%);
    color: white;
    border-radius: 8px;
    margin-bottom: 40px;
}

.hero h2 {
    font-size: 36px;
    margin-bottom: 15px;
}

.hero p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.feature-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 30px 20px;
    text-align: center;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card i {
    font-size: 40px;
    color: var(--secondary);
    margin-bottom: 15px;
}

.feature-card h3 {
    margin-bottom: 15px;
    color: var(--primary);
}

/* Login Styles */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
}

.login-box {
    background: white;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    padding: 30px;
}

.login-box h2 {
    text-align: center;
    margin-bottom: 30px;
    color: var(--primary);
}

.login-help {
    text-align: center;
    margin-top: 20px;
    color: var(--gray);
    font-size: 14px;
}

/* Dashboard Styles */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 20px;
}

.stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    text-align: center;
}

.stat-card h3 {
    font-size: 14px;
    color: var(--gray);
    margin-bottom: 10px;
}

.stat-card .number {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary);
}

.stat-card.open {
    border-bottom: 4px solid var(--secondary);
}

.stat-card.pending {
    border-bottom: 4px solid var(--warning);
}

.stat-card.closed {
    border-bottom: 4px solid var(--success);
}

/* Ticket List */
.ticket-list {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.ticket-item {
    display: grid;
    grid-template-columns: 50px 1fr 100px 100px;
    gap: 15px;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    align-items: center;
}

.ticket-item:last-child {
    border-bottom: none;
}

.ticket-item:hover {
    background: #f9f9f9;
}

.ticket-id {
    font-weight: 600;
    color: var(--primary);
}

.ticket-subject {
    font-weight: 500;
}

.ticket-subject a {
    color: var(--dark);
    text-decoration: none;
}

.ticket-subject a:hover {
    color: var(--secondary);
}

.priority {
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    text-align: center;
}

.priority.high {
    background: #FFE8E8;
    color: var(--danger);
}

.priority.medium {
    background: #FFF4E0;
    color: var(--warning);
}

.priority.low {
    background: #E8F5E9;
    color: var(--success);
}

.status {
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    text-align: center;
}

.status.open {
    background: #E8F5E9;
    color: var(--success);
}

.status.pending {
    background: #FFF4E0;
    color: var(--warning);
}

.status.closed {
    background: #FFE8E8;
    color: var(--danger);
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: var(--font-main);
    font-size: 14px;
}

.form-control:focus {
    outline: none;
    border-color: var(--secondary);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 20px;
    background: var(--secondary);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn:hover {
    background: #16A085;
    transform: translateY(-2px);
}

.btn-danger {
    background: var(--danger);
}

.btn-danger:hover {
    background: #C0392B;
}

.btn-warning {
    background: var(--warning);
}

.btn-warning:hover {
    background: #E67E22;
}

/* Ticket Detail View */
.ticket-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.ticket-status {
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

.ticket-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.meta-item {
    display: flex;
    flex-direction: column;
}

.meta-label {
    font-size: 12px;
    color: var(--gray);
    margin-bottom: 5px;
}

.meta-value {
    font-weight: 500;
}

.ticket-description {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.ticket-updates {
    margin-bottom: 20px;
}

.ticket-updates h4 {
    margin-bottom: 15px;
}

.update-item {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 10px;
}

.update-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 14px;
    color: var(--gray);
}

/* Footer */
footer {
    text-align: center;
    padding: 20px 0;
    color: var(--gray);
    font-size: 14px;
    margin-top: auto;
}

/* Responsive */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        text-align: center;
    }
    
    nav ul {
        margin-top: 15px;
        justify-content: center;
    }
    
    nav ul li {
        margin: 0 10px;
    }
    
    .dashboard-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .ticket-item {
        grid-template-columns: 1fr;
        gap: 10px;
        text-align: center;
    }
    
    .stats-cards {
        grid-template-columns: 1fr;
    }
    
    .ticket-meta {
        grid-template-columns: 1fr;
    }
    
    .hero h2 {
        font-size: 28px;
    }
    
    .hero p {
        font-size: 16px;
    }
}