/* Basic Reset & Defaults */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f7f6; /* Light grey background */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    color: #007bff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

img.logo {
    height: 40px;
    margin-right: 15px;
    vertical-align: middle;
}

/* Header */
.portal-header {
    background-color: #ffffff; /* White header */
    padding: 1rem 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-bottom: 3px solid #0056b3; /* Primary color border */
}

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

.logo-area {
    display: flex;
    align-items: center;
}

.logo-area h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #0056b3; /* Primary color */
    margin: 0;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 10px; /* Space between nav items */
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 18px;
    border: none;
    border-radius: 5px;
    font-size: 0.95rem;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    font-weight: 400;
    white-space: nowrap; /* Prevent wrapping */
}

.btn i {
    margin-right: 6px;
}

.btn-primary {
    background-color: #007bff; /* Primary blue */
    color: #fff;
}

.btn-primary:hover {
    background-color: #0056b3; /* Darker blue */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    text-decoration: none;
    color: #fff;
}

.btn-secondary {
    background-color: #6c757d; /* Grey */
    color: #fff;
}

.btn-secondary:hover {
    background-color: #5a6268; /* Darker grey */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    color: #fff;
}

.btn:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}


/* Dropdown */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle::after {
    /* Optional: Add dropdown arrow */
    content: ' \25BC'; /* Down arrow */
    font-size: 0.8em;
    margin-left: 5px;
}

.dropdown-menu {
    display: none; /* Hidden by default */
    position: absolute;
    right: 0; /* Align to the right */
    top: 100%; /* Position below the button */
    background-color: #fff;
    min-width: 220px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    z-index: 100;
    border-radius: 4px;
    padding: 10px 0;
    margin-top: 5px; /* Small gap */
}

.dropdown-menu.show {
    display: block; /* Show when class is added */
}

.dropdown-item {
    padding: 10px 20px;
    font-size: 0.9rem;
    color: #333;
    white-space: nowrap;
}

.dropdown-item i {
    margin-right: 10px;
    color: #6c757d; /* Grey icon */
    width: 16px; /* Align icons */
    text-align: center;
}
.dropdown-item a {
    color: #007bff;
    text-decoration: none;
}
.dropdown-item a:hover {
    text-decoration: underline;
}


/* Main Content */
.portal-main {
    padding: 40px 20px;
    background-color: #fff;
    margin-top: 30px;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
    flex-grow: 1; /* Make main content grow */
}

.portal-main h2 {
    color: #0056b3;
    margin-bottom: 15px;
    font-weight: 700;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

.portal-main p {
    margin-bottom: 25px;
    color: #555;
}

/* Form Styles */
#ticket-form {
    margin-top: 20px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    color: #444;
}

.form-group .required {
    color: #dc3545; /* Red */
    font-weight: bold;
    margin-left: 4px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
    outline: none;
}

.form-group textarea {
    resize: vertical; /* Allow vertical resize */
    min-height: 120px;
}

.form-actions {
    margin-top: 30px;
    text-align: right;
}

/* Form Messages */
.form-message {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    font-weight: bold;
    display: none; /* Hidden by default */
    border: 1px solid transparent;
}

.form-message.success {
    color: #155724; /* Dark green */
    background-color: #d4edda; /* Light green */
    border-color: #c3e6cb;
    display: block;
}

.form-message.error {
    color: #721c24; /* Dark red */
    background-color: #f8d7da; /* Light red */
    border-color: #f5c6cb;
    display: block;
}

/* Spinner for Submit Button */
.spinner {
  display: inline-block;
  width: 1em;
  height: 1em;
  vertical-align: text-bottom;
  border: .2em solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spinner-border .75s linear infinite;
  margin-left: 8px;
}

@keyframes spinner-border {
  to { transform: rotate(360deg); }
}


/* Footer */
.portal-footer {
    background-color: #343a40; /* Dark grey footer */
    color: #adb5bd; /* Light grey text */
    padding: 1.5rem 0;
    margin-top: auto; /* Pushes footer to bottom */
    text-align: center;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        align-items: flex-start;
    }
    .logo-area {
        margin-bottom: 15px;
    }
    .header-nav {
        width: 100%;
        flex-wrap: wrap; /* Allow buttons to wrap */
        justify-content: flex-start;
    }
    .dropdown-menu {
        /* Adjust positioning for mobile if needed */
        left: 0;
        right: auto;
    }
    .form-actions {
        text-align: center;
    }
    .btn {
        width: 100%; /* Make buttons full width */
        margin-bottom: 10px; /* Add space between stacked buttons */
    }
    .header-nav .btn { /* Override full width for header buttons */
      width: auto;
      margin-bottom: 0;
    }
    .dropdown .btn { /* Override full width for dropdown toggle */
        width: auto;
        margin-bottom: 0;
    }

}

@media (max-width: 480px) {
    .logo-area h1 {
        font-size: 1.5rem;
    }
    .btn {
        font-size: 0.9rem;
        padding: 8px 15px;
    }
    .portal-main {
        padding: 20px 15px;
    }
}