/* Global Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 30px;

    background-image: url('/images/background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;

    min-height: 100vh;
}

.card {
    max-width: 400px;
    margin: 80px auto;
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

input, button {
    display: block;
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    box-sizing: border-box;
}

button {
    cursor: pointer;
    background: #1f6feb;
    color: white;
    border: none;
    border-radius: 6px;
}

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

/* Filters section styling */
/* Container spacing wrapper */
.filters-container {
    margin: 24px 0;
    display: flex;
    flex-direction: column;
    gap: 12px; /* Clean gap spacing between your rows */
}

/* Base row settings */
.filter-row {
    display: grid;
    gap: 10px;
    align-items: center;
}

/* Row 1 Layout: Search input gets bulk space, buttons snap to fit */
.search-row {
    grid-template-columns: 1fr auto auto;
}

/* Row 2 Layout: 4 input fields + 1 Filter button = 5 crisp columns */
.advanced-row {
    grid-template-columns: repeat(4, 1fr) auto;
}

/* Make inputs and buttons look consistent inside your filters */
.filter-row input,
.filter-row button {
    width: 100%; /* Spans exactly across its grid track cell */
    margin: 0;   /* Prevents global margins from messing up your alignments */
    box-sizing: border-box;
}

/* Optional styling tweak to make the Reset button look secondary */
.filter-row button.btn-secondary {
    background: #6e7681;
}
.filter-row button.btn-secondary:hover {
    background: #575e67;
}

/* Table Styles */
table {
    width: 100%;
    background: white;
    border-collapse: collapse;
}

th, td {
    padding: 12px;
    border-bottom: 1px solid #ddd;
    text-align: left;
}

th {
    background: #eef2f7;
}

/* Hero Styles */
.hero {
    max-width: 720px;
    margin: 120px auto;
    text-align: center;
    background: white;
    padding: 50px;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

.hero h1 {
    font-size: 56px;
    margin-bottom: 10px;
}

.tagline {
    font-size: 24px;
    font-weight: bold;
    color: #1f6feb;
}

.description {
    font-size: 18px;
    color: #555;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

.button {
    display: inline-block;
    width: auto;
    padding: 12px 24px;
    background: #1f6feb;
    color: white;
    text-decoration: none;
    border-radius: 6px;
}

.button.secondary {
    background: #333;
}

/* Delete Button Styles */
.delete-button {
    background: #d9534f;
}

.delete-button:hover {
    opacity: 0.9;
}

/* Layout for the menu trigger container */
.topbar-menu-wrapper {
    position: relative;
    display: inline-block;
}

.profile-menu-trigger {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    cursor: pointer;
    transition: background 0.2s ease;
    color: white; /* Adjust depending on your topbar background */
}

.profile-menu-trigger:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.profile-icon {
    width: 20px;
    height: 20px;
}

.chevron {
    font-size: 10px;
    opacity: 0.7;
}

/* Dropdown Content Box Styling */
.dropdown-menu-box {
    display: none; /* Hidden by default */
    position: absolute;
    right: 0;
    top: 115%; /* Drops right below the button trigger */
    background-color: #ffffff;
    min-width: 180px;
    box-shadow: 0px 8px 24px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    overflow: hidden;
    z-index: 1000;
    border: 1px solid #eaeaea;
}

/* Visual state for active dropdown */
.dropdown-menu-box.show {
    display: block;
}

.menu-header {
    padding: 10px 16px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #888888;
    font-weight: 600;
}

.menu-divider {
    border: 0;
    height: 1px;
    background-color: #eaeaea;
    margin: 0;
}

/* Individual list rows styles */
.menu-item {
    display: block;
    width: 100%;
    text-align: left;
    padding: 12px 16px;
    background: none;
    border: none;
    font-size: 14px;
    color: #333333;
    text-decoration: none;
    cursor: pointer;
    box-sizing: border-box;
    font-family: inherit;
    transition: background 0.15s ease;
}

.menu-item:hover {
    background-color: #f5f5f5;
}

/* Danger zone / account deletion button customization */
.menu-item.delete-item {
    color: #df4759;
}

.menu-item.delete-item:hover {
    background-color: #fdf2f2;
}