html {
    background-color: #0d1117;
    color: #c9d1d9;
    font-family: 'Segoe UI', 'Liberation Sans', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

body {
    margin: 0;
    padding: 0;
}

.header {
    background: linear-gradient(135deg, #161b22 0%, #1c2128 100%);
    padding: 24px 20px;
    text-align: center;
    border-bottom: 1px solid #30363d;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.notes-app {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 20px;
}

.ticket {
    background: linear-gradient(145deg, #1c2128 0%, #161b22 100%);
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3), 0 2px 4px rgba(0, 0, 0, 0.2);
    padding: 24px;
    margin: 16px 0;
    border: 1px solid #30363d;
    transition: all 0.3s ease;
    position: relative;
    overflow: visible;
}

.ticket:hover {
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.4), 0 2px 8px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
    border-color: #58a6ff;
}

.ticket-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 12px;
    position: relative;
}

.ticket-header h3.ticket-title {
    flex: 1;
    margin: 0 12px;
    min-width: 200px;
}

.ticket-title {
    flex: 1;
    font-size: 1.2rem;
    font-weight: 600;
    color: #c0ddff;
    margin: 0;
    background: none;
    border: none;
    outline: none;
    padding: 8px 12px;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

.ticket-title:focus,
.ticket-title:hover {
    background-color: #21262d;
}

.ticket-title::placeholder {
    color: #7d8590;
}

/* Ticket ID repositioned to top right of header */
.ticket-id {
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0;
    letter-spacing: 0.02em;
    background: #238636;
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 16px;
    box-shadow: 0 2px 4px rgba(35, 134, 54, 0.3);
    border: 1px solid #2ea043;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
}



/* Ticket Body */
.ticket-body {
    margin: 16px 0;
    padding: 16px;
    font-size: 1rem;
    line-height: 1.6;
    border: 1px solid #30363d;
    border-radius: 8px;
    background: #0d1117;
    color: #e6edf3;
    resize: vertical;
    min-height: 80px;
    width: 100%;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ticket-body:focus {
    outline: none;
    border-color: #58a6ff;
    box-shadow: 0 0 0 3px rgba(88, 166, 255, 0.1);
}

.ticket-body::placeholder {
    color: #7d8590;
}

.ticket-body p {
    margin: 0;
    word-wrap: break-word;
}

/* Ticket footer */
.ticket-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid #30363d;
    font-size: 0.85rem;
    color: #7d8590;
}

/* Priority section styling */
.ticket-priority-section {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 16px 0;
    padding: 12px 16px;
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 8px;
}

.priority-label {
    font-size: 1rem;
    font-weight: 500;
    color: #c9d1d9;
    margin: 0;
}

.priority-select {
    border-radius: 6px;
    border: 1px solid #30363d;
    background: #0d1117;
    color: #e6edf3;
    font-size: 1rem;
    font-family: inherit;
    padding: 8px 12px;
    transition: all 0.2s ease;
    outline: none;
    min-width: 120px;
}

.priority-select:focus {
    border-color: #58a6ff;
    box-shadow: 0 0 0 3px rgba(88, 166, 255, 0.1);
}

.priority-select:hover {
    border-color: #48547a;
}

/* Priority tag styling */
.priority-tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-left: auto;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.priority-tag.high {
    background: #da3633;
    color: #ffffff;
    border: 1px solid #f85149;
}

.priority-tag.medium {
    background: #fb8500;
    color: #ffffff;
    border: 1px solid #ffb347;
}

.priority-tag.low {
    background: #238636;
    color: #ffffff;
    border: 1px solid #2ea043;
}

.ticket-time-stamp {
    margin: 0;
    font-style: italic;
}

.timestamp {
    font-family: 'Fira Mono', 'Consolas', monospace;
    font-size: 0.9em;
    color: #58a6ff;
}

#header-text {
    font-size: 2rem;
    font-weight: 700;
    color: #58a6ff;
    margin: 0;
    text-shadow: 0 2px 4px rgba(88, 166, 255, 0.3);
}

/* .section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin: 32px 0 16px 0;
    padding: 16px 0;
    border-bottom: 2px solid #30363d;
} */

.section-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #e6edf3;
    margin: 0;
    flex: 1;
}

.section-header label {
    margin: 0;
    font-size: 1rem;
    font-weight: 500;
    color: #c9d1d9;
}

.section-header select {
    border-radius: 8px;
    border: 1px solid #30363d;
    background: #161b22;
    color: #e6edf3;
    font-size: 1rem;
    font-family: inherit;
    padding: 8px 12px;
    transition: all 0.2s ease;
    outline: none;
    min-width: 120px;
}

.section-header select:focus {
    border-color: #58a6ff;
    box-shadow: 0 0 0 3px rgba(88, 166, 255, 0.1);
}

.section-header select:hover {
    border-color: #48547a;
}

.section {
    margin-bottom: 24px;
}

#create-ticket-btn {
    background: linear-gradient(135deg, #238636 0%, #2ea043 100%);
    color: #ffffff;
    border: 1px solid #1b7f32;
    border-radius: 8px;
    padding: 10px 20px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(35, 134, 54, 0.3);
    transition: all 0.2s ease;
    margin-left: 8px;
    position: relative;
    overflow: hidden;
}

#create-ticket-btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

#create-ticket-btn:hover:before {
    left: 100%;
}

#create-ticket-btn:hover,
#create-ticket-btn:focus {
    background: linear-gradient(135deg, #2ea043 0%, #238636 100%);
    border-color: #196c2e;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(35, 134, 54, 0.4);
}

#create-ticket-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(35, 134, 54, 0.3);
}

/* Additional styling for delete buttons and responsive design */

/* Delete button styling */
.delete-btn {
    background: linear-gradient(135deg, #da3633 0%, #f85149 100%);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 6px 10px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(218, 54, 51, 0.3);
}

.delete-btn:hover {
    background: linear-gradient(135deg, #f85149 0%, #da3633 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(218, 54, 51, 0.4);
}

.delete-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(218, 54, 51, 0.3);
}

/* Responsive design improvements */
@media (max-width: 768px) {
    .notes-app {
        padding: 16px 12px;
    }
    
    .ticket {
        padding: 16px;
        margin: 12px 0;
    }
    
    .ticket-header {
        display: grid;
        grid-template-columns: auto 1fr auto;
        grid-template-rows: auto auto;
        gap: 8px;
        align-items: flex-start;
    }
    
    .ticket-id {
        grid-column: 1;
        grid-row: 1;
        align-self: flex-start;
        margin: 0;
    }
    
    .priority-tag {
        grid-column: 3;
        grid-row: 1;
        align-self: flex-start;
        margin: 0;
    }
    
    .ticket-title {
        grid-column: 1 / -1;
        grid-row: 2;
        margin: 8px 0 0 0;
        width: 100%;
    }
    
    .ticket-priority-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .priority-select {
        width: 100%;
    }
    
    /* .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    } */
    
    .section-header h2 {
        font-size: 1.3rem;
    }
    
    #header-text {
        font-size: 1.7rem;
    }
    
    #create-ticket-btn {
        align-self: stretch;
        margin-left: 0;
        margin-top: 8px;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 16px 12px;
    }
    
    #header-text {
        font-size: 1.5rem;
    }
    
    .ticket-body {
        min-height: 60px;
    }
    
    .ticket-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

/* Error message styling */
.error-message {
    color: #c00;
    padding: 20px;
}