/* ============================================
   SMS Application - Main Stylesheet
   Supports Light/Dark Mode
   ============================================ */

/* CSS Variables for Light Mode (Default) */
:root {
    --bg-gradient-start: #667eea;
    --bg-gradient-end: #764ba2;
    --container-bg: white;
    --text-primary: #333;
    --text-secondary: #666;
    --accent-color: #667eea;
    --info-bg: #f8f9fa;
    --info-border: #667eea;
    --shadow: rgba(0, 0, 0, 0.3);
    --border-color: #e0e0e0;
    --link-color: #667eea;
    --link-hover: #764ba2;
    --button-bg: #667eea;
    --button-text: white;
    --button-hover: #764ba2;
    --error-color: #e74c3c;
    --success-color: #27ae60;
    --warning-color: #f39c12;
}

/* CSS Variables for Dark Mode */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-gradient-start: #2d1b4e;
        --bg-gradient-end: #1a0d2e;
        --container-bg: #1e1e1e;
        --text-primary: #e0e0e0;
        --text-secondary: #b0b0b0;
        --accent-color: #8b7fc8;
        --info-bg: #2a2a2a;
        --info-border: #8b7fc8;
        --shadow: rgba(0, 0, 0, 0.6);
        --border-color: #404040;
        --link-color: #8b7fc8;
        --link-hover: #a89dd4;
        --button-bg: #8b7fc8;
        --button-text: #1e1e1e;
        --button-hover: #a89dd4;
        --error-color: #ff6b6b;
        --success-color: #51cf66;
        --warning-color: #ffd43b;
    }
    
    .registration-card .nav-pills .nav-link {
        background-color: #2a2a2a;
    }
    
    .registration-card .nav-pills .nav-link:hover {
        background-color: #3a3a3a;
    }
    
    .registration-card .nav-pills .nav-link.active {
        background-color: #8b7fc8;
        border-color: #8b7fc8;
    }
}

/* Animated Background Gradient - Light Mode */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes gradientShiftDark {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #ffffff;
    min-height: 100vh;
    padding-top: 76px;
    padding-bottom: 40px;
    color: var(--text-primary);
    position: relative;
}

/* Dark Mode Background */
@media (prefers-color-scheme: dark) {
    body {
        background: #1e1e1e;
    }
}

/* Navigation Bar Styles */
.navbar {
    background: var(--container-bg) !important;
    backdrop-filter: blur(10px);
    transition: background-color 0.3s ease;
    border-bottom: 1px solid var(--border-color);
}

.navbar-brand {
    color: var(--text-primary) !important;
    font-weight: 600;
    transition: color 0.3s ease;
}

.navbar-brand:hover {
    color: var(--accent-color) !important;
}

.nav-link {
    color: var(--text-secondary) !important;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem 1rem !important;
}

.nav-link:hover {
    color: var(--accent-color) !important;
}

.navbar-toggler {
    border-color: var(--border-color);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(102, 126, 234, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Dark Mode Navbar Styles */
@media (prefers-color-scheme: dark) {
    .navbar.navbar-light,
    .navbar.bg-light {
        background: var(--container-bg) !important;
        border-bottom-color: var(--border-color) !important;
    }
    
    .navbar-brand {
        color: var(--text-primary) !important;
    }
    
    .navbar-brand:hover {
        color: var(--accent-color) !important;
    }
    
    .navbar-brand img {
        filter: brightness(1.2) contrast(1.1);
    }
    
    .navbar-brand span {
        color: var(--accent-color) !important;
    }
    
    .navbar-toggler {
        border-color: var(--border-color) !important;
    }
    
    .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(139, 127, 200, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
    }
    
    .nav-link {
        color: var(--text-secondary) !important;
    }
    
    .nav-link:hover {
        color: var(--accent-color) !important;
    }
}

.dropdown-menu {
    background: var(--container-bg) !important;
    border-color: var(--border-color) !important;
    box-shadow: 0 4px 12px var(--shadow) !important;
}

.dropdown-item {
    color: var(--text-primary) !important;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background: var(--info-bg) !important;
    color: var(--accent-color) !important;
}

.dropdown-item.active {
    background: var(--accent-color) !important;
    color: var(--button-text) !important;
}

/* Container Styles - Override Bootstrap for custom styling */
.container .card {
    background: var(--container-bg);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.container .card-body {
    background: var(--container-bg);
    transition: background-color 0.3s ease;
}

/* Typography */
h1 {
    color: var(--accent-color);
    margin-bottom: 20px;
    font-size: 2.5em;
    transition: color 0.3s ease;
    font-weight: 600;
}

h2 {
    color: var(--accent-color);
    margin-bottom: 15px;
    font-size: 2em;
    transition: color 0.3s ease;
    font-weight: 600;
}

h3 {
    color: var(--text-primary);
    margin-bottom: 12px;
    font-size: 1.5em;
    transition: color 0.3s ease;
    font-weight: 500;
}

p {
    color: var(--text-secondary);
    font-size: 1.2em;
    line-height: 1.6;
    margin-bottom: 30px;
    transition: color 0.3s ease;
}

/* Info Box Styles */
.info {
    background: var(--info-bg);
    border-left: 4px solid var(--info-border);
    padding: 15px;
    margin-top: 20px;
    border-radius: 5px;
    text-align: left;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.info strong {
    color: var(--accent-color);
    transition: color 0.3s ease;
}

.info p {
    color: var(--text-primary);
    margin-bottom: 10px;
    font-size: 1em;
}

.info p:last-child {
    margin-bottom: 0;
}

/* Link Styles */
a {
    color: var(--link-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--link-hover);
    text-decoration: underline;
}

/* Button Styles - Enhanced Bootstrap Buttons */
.btn-primary {
    background: var(--button-bg) !important;
    border-color: var(--button-bg) !important;
    color: var(--button-text) !important;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-primary:hover,
.btn-primary:focus {
    background: var(--button-hover) !important;
    border-color: var(--button-hover) !important;
    transform: translateY(-2px);
}

.btn-primary:active {
    transform: translateY(0);
}

/* Form Styles - Enhanced Bootstrap Forms */
.form-control,
.form-select {
    background: var(--container-bg) !important;
    color: var(--text-primary) !important;
    border-color: var(--border-color) !important;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--accent-color) !important;
    box-shadow: 0 0 0 0.25rem rgba(102, 126, 234, 0.25) !important;
    background: var(--container-bg) !important;
    color: var(--text-primary) !important;
}

/* Right-align number input fields */
input[type="number"],
input[type="number"].form-control {
    text-align: right !important;
}

/* Right-align numeric display fields in tables */
td.text-end,
th.text-end {
    text-align: right !important;
}

.form-label {
    color: var(--text-primary) !important;
}

/* Card Styles - Enhanced Bootstrap Cards */
.card {
    background: var(--container-bg) !important;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.card-body {
    color: var(--text-primary);
}

/* Alert/Message Styles */
.alert {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid;
}

.alert-success {
    background: var(--success-color);
    border-color: var(--success-color);
    color: white;
}

.alert-error {
    background: var(--error-color);
    border-color: var(--error-color);
    color: white;
}

.alert-warning {
    background: var(--warning-color);
    border-color: var(--warning-color);
    color: var(--text-primary);
}

/* Table Styles */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: var(--container-bg);
    border-radius: 8px;
    overflow: hidden;
}

th,
td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
}

th {
    background: var(--info-bg);
    color: var(--accent-color);
    font-weight: 600;
}

tr:hover {
    background: var(--info-bg);
}

/* Dark Mode Table Styles */
@media (prefers-color-scheme: dark) {
    table {
        background: #2a2a2a;
        color: var(--text-primary);
    }
    
    th,
    td {
        color: var(--text-primary);
        border-bottom-color: #404040;
    }
    
    th {
        background: #1e1e1e;
        color: var(--accent-color);
    }
    
    tr:hover {
        background: #1e1e1e;
    }
    
    tr:hover td {
        background: #1e1e1e;
        color: var(--text-primary);
    }
    
    .table-light {
        background: #1e1e1e !important;
    }
    
    .table-light th {
        background: #1e1e1e !important;
        color: var(--accent-color) !important;
    }
    
    .table-hover tbody tr:hover {
        background: #1e1e1e !important;
    }
    
    .table-hover tbody tr:hover td {
        background: #1e1e1e !important;
        color: var(--text-primary) !important;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }
.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }
.p-1 { padding: 10px; }
.p-2 { padding: 20px; }
.p-3 { padding: 30px; }

/* Hero Banner Section */
.hero-banner {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 60vh;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    z-index: 0;
}

@media (prefers-color-scheme: dark) {
    .hero-banner::before {
        background: rgba(30, 30, 30, 0.1);
    }
}

.hero-banner .container {
    position: relative;
    z-index: 1;
}

.hero-banner h1 {
    color: var(--accent-color);
    font-weight: 700;
}

.hero-banner .lead {
    color: var(--text-primary);
    font-size: 1.25rem;
}

/* Features Section */
.features-section {
    background: #f8f9fa;
}

@media (prefers-color-scheme: dark) {
    .features-section {
        background: #2a2a2a;
    }
}

.feature-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 12px;
    background: var(--container-bg) !important;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px var(--shadow) !important;
}

.feature-icon {
    color: var(--accent-color);
}

.feature-card .card-title {
    color: var(--text-primary);
}

.feature-card .card-text {
    color: var(--text-secondary);
}

/* Footer Banner */
.footer-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 40px;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
}

.footer-banner .container {
    height: 100%;
}

.footer-banner .row {
    height: 100%;
    margin: 0;
}

.footer-banner i {
    font-size: 1.1rem;
    min-width: 20px;
}

.footer-banner a {
    min-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Dashboard Layout */
.dashboard-body {
    padding-top: 76px;
    padding-bottom: 40px;
}

.dashboard-container {
    display: flex;
    min-height: calc(100vh - 116px);
    margin-top: 0;
}

/* Sidebar */
.sidebar {
    width: 250px;
    background: #f8f9fa;
    border-right: 1px solid var(--border-color);
    position: fixed;
    left: 0;
    top: 76px;
    bottom: 40px;
    overflow-y: auto;
    z-index: 100;
    transition: transform 0.3s ease;
}

@media (prefers-color-scheme: dark) {
    .sidebar {
        background: #2a2a2a;
        border-right-color: #404040;
    }
}

.sidebar-nav {
    padding: 20px 0;
}

.sidebar-nav .nav-link {
    color: var(--text-primary);
    padding: 12px 20px;
    border-radius: 0;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.sidebar-nav .nav-link:hover {
    background: var(--info-bg);
    color: var(--accent-color);
}

.sidebar-nav .nav-link.active {
    background: #afbbc7; /* light ash */
    color: var(--accent-color);
    font-weight: 600;
}

.sidebar-nav .nav-link.active i {
    color: var(--accent-color);
}

.sidebar-nav .nav-link i {
    font-size: 1.1rem;
    width: 24px;
}

/* Sub-menu Styles */
.sidebar-nav .has-submenu .submenu-toggle {
    cursor: pointer;
    position: relative;
}

.sidebar-nav .submenu-icon {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
    width: auto;
}

.sidebar-nav .submenu-toggle[aria-expanded="true"] .submenu-icon {
    transform: rotate(180deg);
}

.sidebar-nav .submenu {
    background: rgba(0, 0, 0, 0.05);
    padding-left: 0;
}

@media (prefers-color-scheme: dark) {
    .sidebar-nav .submenu {
        background: rgba(255, 255, 255, 0.05);
    }
    
    .sidebar-nav .nav-link.active {
        background: #3a3a3a !important;
        color: var(--accent-color) !important;
    }
    
    .sidebar-nav .submenu-link.active {
        background: #3a3a3a !important;
        color: var(--accent-color) !important;
    }
    
    .sidebar-nav .form-label,
    .sidebar-nav .text-muted {
        color: #b0b0b0 !important;
    }
    
    .sidebar-nav .form-select {
        background: #1e1e1e !important;
        color: var(--text-primary) !important;
        border-color: var(--border-color) !important;
    }
}

.sidebar-nav .submenu-link {
    padding-left: 50px !important;
    font-size: 0.9rem;
    padding-top: 8px;
    padding-bottom: 8px;
}

.sidebar-nav .submenu-link:hover {
    background: var(--info-bg);
    color: var(--accent-color);
}

.sidebar-nav .submenu-link.active {
    background: #afbbc7; /* light ash */
    color: var(--accent-color);
}

.sidebar-nav .submenu-link i {
    font-size: 0.9rem;
    width: 20px;
}

/* Dashboard Main Content */
.dashboard-main {
    flex: 1;
    margin-left: 250px;
    background: #ffffff;
    min-height: calc(100vh - 116px);
}

@media (prefers-color-scheme: dark) {
    .dashboard-main {
        background: #1e1e1e;
    }
    
    /* Dashboard Typography */
    .dashboard-main h1,
    .dashboard-main h2,
    .dashboard-main h3,
    .dashboard-main h4,
    .dashboard-main h5,
    .dashboard-main h6 {
        color: var(--text-primary) !important;
    }
    
    .dashboard-main .text-muted {
        color: #b0b0b0 !important;
    }
    
    /* Dashboard Cards */
    .dashboard-main .card {
        background: #2a2a2a !important;
        border-color: #404040 !important;
        color: var(--text-primary) !important;
    }
    
    .dashboard-main .card-body {
        background: #2a2a2a !important;
        color: var(--text-primary) !important;
    }
    
    .dashboard-main .card-header {
        background: #2a2a2a !important;
        border-bottom-color: #404040 !important;
        color: var(--text-primary) !important;
    }
    
    .dashboard-main .card-title,
    .dashboard-main .card h5,
    .dashboard-main .card h6 {
        color: var(--text-primary) !important;
    }
    
    .dashboard-main .card-text {
        color: var(--text-secondary) !important;
    }
    
    /* Dashboard Tables */
    .dashboard-main table {
        background: #2a2a2a !important;
        color: var(--text-primary) !important;
    }
    
    .dashboard-main .table {
        background: #2a2a2a !important;
        color: var(--text-primary) !important;
    }
    
    .dashboard-main .table thead {
        background: #1e1e1e !important;
    }
    
    .dashboard-main .table thead th {
        background: #1e1e1e !important;
        color: var(--accent-color) !important;
        border-bottom-color: #404040 !important;
    }
    
    .dashboard-main .table thead.table-light {
        background: #1e1e1e !important;
    }
    
    .dashboard-main .table thead.table-light th {
        background: #1e1e1e !important;
        color: var(--accent-color) !important;
    }
    
    .dashboard-main .table tbody {
        background: #2a2a2a !important;
    }
    
    .dashboard-main .table tbody td {
        background: #2a2a2a !important;
        color: var(--text-primary) !important;
        border-bottom-color: #404040 !important;
    }
    
    .dashboard-main .table tbody tr {
        background: #2a2a2a !important;
        color: var(--text-primary) !important;
    }
    
    .dashboard-main .table tbody tr:hover {
        background: #1e1e1e !important;
        color: var(--text-primary) !important;
    }
    
    .dashboard-main .table tbody tr:hover td {
        background: #1e1e1e !important;
        color: var(--text-primary) !important;
    }
    
    .dashboard-main .table-light {
        background: #1e1e1e !important;
    }
    
    .dashboard-main .table-hover tbody tr:hover {
        background: #1e1e1e !important;
    }
    
    .dashboard-main .table-hover tbody tr:hover td {
        background: #1e1e1e !important;
        color: var(--text-primary) !important;
    }
    
    .dashboard-main .table-responsive {
        background: transparent !important;
    }
    
    /* Card headers with bg-white */
    .dashboard-main .card-header.bg-white {
        background: #2a2a2a !important;
        border-bottom-color: #404040 !important;
    }
    
    .dashboard-main .card-header.bg-white h5,
    .dashboard-main .card-header.bg-white .h5,
    .dashboard-main .card-header.bg-white * {
        color: var(--text-primary) !important;
    }
    
    /* Dashboard Forms */
    .dashboard-main .form-control,
    .dashboard-main .form-select {
        background: #1e1e1e !important;
        color: var(--text-primary) !important;
        border-color: #404040 !important;
    }
    
    .dashboard-main .form-control:focus,
    .dashboard-main .form-select:focus {
        background: #1e1e1e !important;
        color: var(--text-primary) !important;
        border-color: var(--accent-color) !important;
    }
    
    .dashboard-main .form-label {
        color: var(--text-primary) !important;
    }
    
    .dashboard-main .input-group-text {
        background: #2a2a2a !important;
        color: var(--text-primary) !important;
        border-color: #404040 !important;
    }
    
    /* Dashboard Buttons */
    .dashboard-main .btn-outline-primary {
        border-color: var(--accent-color) !important;
        color: var(--accent-color) !important;
    }
    
    .dashboard-main .btn-outline-primary:hover {
        background: var(--accent-color) !important;
        color: var(--button-text) !important;
    }
    
    /* Dashboard Badges and Alerts */
    .dashboard-main .badge {
        color: white !important;
    }
    
    .dashboard-main .alert {
        background: #2a2a2a !important;
        border-color: #404040 !important;
        color: var(--text-primary) !important;
    }
    
    /* Dashboard Pagination */
    .dashboard-main .pagination .page-link {
        background: #2a2a2a !important;
        color: var(--text-primary) !important;
        border-color: #404040 !important;
    }
    
    .dashboard-main .pagination .page-link:hover {
        background: #1e1e1e !important;
        color: var(--accent-color) !important;
    }
    
    .dashboard-main .pagination .page-item.active .page-link {
        background: var(--accent-color) !important;
        border-color: var(--accent-color) !important;
    }
    
    /* Dashboard Small Text */
    .dashboard-main small {
        color: #b0b0b0 !important;
    }
}

/* Responsive Dashboard */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        width: 250px;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    }
    
    .sidebar.show {
        transform: translateX(0);
    }
    
    .sidebar.show::after {
        content: '';
        position: fixed;
        top: 76px;
        left: 250px;
        right: 0;
        bottom: 40px;
        background: rgba(0, 0, 0, 0.5);
        z-index: 99;
    }
    
    .dashboard-main {
        margin-left: 0;
    }
    
    .dashboard-container {
        position: relative;
    }
}

/* Registration Form Styles */
.registration-container {
    min-height: calc(100vh - 116px);
    display: flex;
    align-items: center;
    padding: 40px 0;
    background: #ffffff;
}

@media (prefers-color-scheme: dark) {
    .registration-container {
        background: #1e1e1e;
    }
}

.registration-card {
    background: var(--container-bg);
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 20px var(--shadow);
    border: 1px solid var(--border-color);
}

.registration-card h2 {
    color: var(--accent-color);
    font-weight: 700;
}

.registration-card .form-label {
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: 8px;
}

.registration-card .form-control {
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    background: var(--container-bg);
}

.registration-card .form-control:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.registration-card .input-group-text {
    background: var(--info-bg);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-weight: 600;
}

.registration-card .btn-primary {
    background: var(--accent-color);
    border: none;
    padding: 12px;
    font-weight: 600;
}

.registration-card .btn-primary:hover {
    background: var(--button-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px var(--shadow);
}

.registration-card a {
    color: var(--accent-color);
    text-decoration: none;
}

.registration-card a:hover {
    color: var(--link-hover);
    text-decoration: underline;
}

.registration-card .nav-pills .nav-link {
    color: var(--text-primary);
    background-color: #f8f9fa;
    border: 1px solid var(--border-color);
    margin: 0 5px;
    transition: all 0.3s ease;
}

.registration-card .nav-pills .nav-link:hover {
    background-color: #e9ecef;
    border-color: var(--accent-color);
}

.registration-card .nav-pills .nav-link.active {
    background-color: #d8d6e5;
    color: white;
    border-color: #d8d6e5;
    font-weight: 500;
}

.registration-card .divider {
    text-align: center;
    position: relative;
    margin: 20px 0;
}

.registration-card .divider::before,
.registration-card .divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 45%;
    height: 1px;
    background: var(--border-color);
}

.registration-card .divider::before {
    left: 0;
}

.registration-card .divider::after {
    right: 0;
}

.registration-card .divider span {
    background: var(--container-bg);
    padding: 0 15px;
    position: relative;
    color: var(--text-secondary);
}

/* User Dropdown Styles */
.navbar .dropdown-menu {
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.navbar .dropdown-item {
    padding: 0.5rem 1rem;
    transition: background-color 0.2s;
}

.navbar .dropdown-item:hover {
    background-color: var(--accent-color);
    color: white;
}

.navbar .dropdown-item.text-danger:hover {
    background-color: #dc3545;
    color: white;
}

/* Dropdown Submenu */
.dropdown-submenu {
    position: relative;
}

.dropdown-submenu > .dropdown-menu {
    top: 0;
    left: 100%;
    margin-top: -1px;
}

.dropdown-submenu:hover > .dropdown-menu {
    display: block;
}

@media (max-width: 768px) {
    .dropdown-submenu > .dropdown-menu {
        position: static;
        left: auto;
        margin-top: 0;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding: 10px;
        padding-top: 96px;
        padding-bottom: 40px;
    }
    
    .registration-container {
        padding: 20px 0;
    }
    
    .registration-card {
        padding: 30px 20px;
    }
    
    .footer-banner .small {
        font-size: 0.7rem;
    }
    
    .footer-banner i {
        font-size: 1.2rem;
    }
    
    .container {
        padding: 20px;
        border-radius: 15px;
    }
    
    .hero-banner {
        min-height: auto;
        padding: 2rem 0 !important;
    }
    
    .hero-banner h1 {
        font-size: 2.5rem;
    }
    
    h1 {
        font-size: 2em;
    }
    
    h2 {
        font-size: 1.5em;
    }
    
    p {
        font-size: 1em;
    }
    
    .features-section {
        padding: 2rem 0 !important;
    }
}

/* Autocomplete Suggestions Styles */
.autocomplete-suggestions {
    z-index: 1000;
    max-height: 200px;
    overflow-y: auto;
    width: calc(100% - 2px);
    top: 100%;
    margin-top: 2px;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
}

/* Utility Classes for Common Inline Styles */
.font-size-sm {
    font-size: 0.75em;
}

.text-truncate-inline {
    max-width: 200px;
    display: inline-block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

