:root {
    --primary-color: #0d6efd;       /* Bootstrap Blue */
    --primary-hover: #0b5ed7;
    --bg-color: #f8f9fa;            /* Light Gray Background */
    --card-bg: #ffffff;
    --text-color: #333333;
    --border-radius: 10px;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

a:hover {
    text-decoration: underline;
}


.login-box {
    background: var(--card-bg);
    width: 100%;
    max-width: 400px;
    margin: 50px auto;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
}

.login-box h2 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.login-box label {
    display: block;
    text-align: left;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #555;
}

.login-box input {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-sizing: border-box; /* Ensures padding doesn't break width */
}

.login-box input:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.25);
}

.register-text {
    margin-top: 15px;
    font-size: 0.9rem;
}


.btn {
    display: inline-block;
    font-weight: 500;
    text-align: center;
    padding: 10px 20px;
    font-size: 1rem;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
    width: 100%; /* Full width for login forms */
}

/* Default Blue Button */
.btn, .btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn:hover, .btn-primary:hover {
    background-color: var(--primary-hover);
}

/* Green Button (for 'New Ticket') */
.btn-success {
    background-color: #198754;
    color: white;
}

.btn-success:hover {
    background-color: #157347;
}


.navbar {
    padding: 15px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: transform 0.2s;
    background-color: var(--card-bg);
}

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

.card-title {
    font-weight: bold;
    margin-bottom: 0.5rem;
}

/* Status Badges */
.badge {
    padding: 0.5em 0.8em;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.bg-warning {
    background-color: #ffc107 !important;
    color: #000;
}

.bg-success {
    background-color: #198754 !important;
    color: #fff;
}

.bg-secondary {
    background-color: #6c757d !important;
    color: #fff;
}

/* Helper for spacing in non-login forms */
.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
}

textarea.form-control {
    resize: vertical; /* Allow resizing only vertically */
}

.text-center { text-align: center; }
.mb-3 { margin-bottom: 1rem; }
.mt-3 { margin-top: 1rem; }
.d-none { display: none; }



/*** Comments ***/

.comment-box {
    margin-bottom: 10px;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

.comment-author {
    font-weight: 600;
}

.comment-time {
    font-size: 0.8rem;
    color: gray;
}


/* Add Comment */

textarea {
    width: 100%;
    resize: none;
    padding: 8px;
    border-radius: 5px;
    border: 1px solid #ccc;
    margin-bottom: 10px;
}

.btn-primary {
    background-color: #0d6efd;
    color: #ffffff;
    border: none;
    padding: 6px 12px;
    font-size: 0.85rem;
    border-radius: 4px;
    cursor: pointer;
    width: 150px;
}

.btn-primary:hover {
    background-color: #0b5ed7;
}

/*** End of Comments ***/