/* ====== Global Variables ====== */
:root {
  --primary: #2c3e50;
  --secondary: #3498db;
  --success: #00bc8c;
  --info: #17a2b8;
  --warning: #f39c12;
  --danger: #e74c3c;
  --light: #f8f9fa;
  --dark: #343a40;
}

/* ====== Base Styles ====== */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f4f6f9;
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

/* ====== Dashboard Layout ====== */
.dashboard-container {
  display: flex;
  min-height: 100vh;
}

/* ====== Fixed Sidebar ====== */
.sidebar {
  width: 250px;
  background-color: var(--primary);
  color: white;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 100;
  overflow-y: auto;
  padding: 20px;
  box-shadow: 2px 0 10px rgba(0,0,0,0.1);
}

.sidebar-header {
  padding: 20px;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  margin-bottom: 20px;
}

.sidebar-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-menu li {
  margin: 8px 0;
}

.sidebar-menu a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  padding: 12px 16px;
  display: block;
  border-radius: 6px;
  transition: all 0.3s ease;
  font-size: 0.95rem;
}

.sidebar-menu a:hover {
  background-color: rgba(255,255,255,0.1);
  color: white;
}

.sidebar-menu i {
  width: 25px;
  font-size: 1.1rem;
}

/* ====== Main Content Area ====== */
.main-content {
  flex: 1;
  margin-left: 250px; /* Must match sidebar width */
  padding: 30px;
  min-height: 100vh;
  background-color: #f8f9fa;
}

/* ====== Responsive Fixes ====== */
@media (max-width: 768px) {
  .sidebar {
    width: 0;
    overflow: hidden;
    transition: width 0.3s;
  }
  
  .main-content {
    margin-left: 0;
    width: 100%;
  }
  
  .sidebar.active {
    width: 250px;
  }
}

.state-card {
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.state-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1));
    transform: rotate(45deg);
}

.state-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.state-count {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.state-province {
    font-size: 1.2rem;
    letter-spacing: 1px;
    opacity: 0.9;
    font-weight: 500;
    text-transform: uppercase;
}

.state-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

/* Add to assets/css/style.css */
.state-name {
    font-size: 0.8rem;
    opacity: 0.8;
    letter-spacing: 0.5px;
}

.success {
    background-color: rgba(25, 135, 84, 0.9);
}

.warning {
    background-color: rgba(238, 210, 2, 0.9);
}

.danger {
    background-color: rgba(176, 60, 63, 0.9);
}


/* Add to assets/css/style.css */
.spinner-border {
    vertical-align: middle;
}

#formMessage {
    min-height: 40px;
}


/* Add to assets/css/style.css */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
}

.login-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    padding: 40px;
    width: 100%;
    max-width: 400px;
    animation: slideUp 0.5s ease;
    border: 1px solid black;
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header h2 {
    color: #333;
    font-size: 2rem;
    margin-bottom: 10px;
}

.login-header p {
    color: #666;
    font-size: 0.9rem;
}

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

.form-group input {
    padding: 12px 40px 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group i {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    transition: color 0.3s ease;
}

.form-group input:focus + i {
    color: #667eea;
}

.login-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.login-btn i {
    transition: transform 0.3s ease;
}

.login-btn:hover i {
    transform: translateX(5px);
}

.login-footer {
    margin-top: 20px;
    text-align: center;
    font-size: 0.9rem;
    color: #666;
}

.login-footer a {
    color: #667eea;
    text-decoration: none;
    transition: color 0.3s ease;
}

.login-footer a:hover {
    color: #764ba2;
}

.login-footer span {
    margin: 0 10px;
    color: #ddd;
}

.glow-red {
    background-color: rgba(176, 60, 63, 0.9);
    color: white;
    transition: box-shadow 0.3s ease-in-out;
}

#notification {
    display: none;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

#notification .close {
    margin-left: 15px;
    color: inherit;
    cursor: pointer;
}

.alert-success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

.user-creation {
    max-width: 400px;
    margin: 50px auto;
    padding: 20px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.user-creation h2 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 24px;
    color: #333;
}

.user-form .form-group {
    margin-bottom: 15px;
}

.user-form input,
.user-form select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s ease;
}

.user-form input:focus,
.user-form select:focus {
    border-color: #007bff;
}

.user-form select {
    appearance: none;
    background: url('data:image/svg+xml;utf8,<svg fill="%23333" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>') no-repeat right 10px center;
    background-size: 12px;
    padding-right: 30px;
}

.submit-btn {
    width: 100%;
    padding: 10px;
    background: #007bff;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.submit-btn:hover {
    background: #0056b3;
}

.submit-btn:active {
    background: #004080;
}

.settings-form .form-group {
    margin-bottom: 15px;
}

.settings-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #555;
}

.settings-form input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s ease;
}

.settings-form input:focus {
    border-color: #007bff;
}

.password-input-container {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-container input {
    width: 100%;
    padding-right: 40px; /* Space for the toggle button */
}

.toggle-password-btn {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    cursor: pointer;
    color: #777;
    padding: 5px;
}

.toggle-password-btn:hover {
    color: #333;
}

.toggle-password-btn i {
    font-size: 16px;
}

/* My Numbers Page Styles */
.table-responsive {
    overflow-x: auto;
}

.table-hover tbody tr:hover {
    background-color: #f8f9fa;
}

.alert-info {
    background-color: #d1ecf1;
    border-color: #bee5eb;
    color: #0c5460;
}

.input-group {
    max-width: 500px;
    margin-bottom: 20px;
}

.card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}