:root {
    --primary-color: #4f46e5;
    --primary-hover: #4338ca;
    --text-dark: #111827;
    --text-gray: #4b5563;
    --border-color: #e5e7eb;
    --bg-light: #f9fafb;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
}

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

/* Navbar */
.navbar {
    background: white;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 30px;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-container {
    margin: 0 auto;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 40px;
    justify-content: space-between;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: -0.025em;
}

.logo a {
    text-decoration: none;
    color: inherit;
}

.navbar-menu {
    display: flex;
    gap: 25px;
    align-items: center;
    flex-grow: 1;
}

.navbar-right {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text-gray);
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s ease;
}

.nav-link:hover {
    color: var(--primary-color);
}

/* Buttons */
.btn-primary, .btn-secondary, .btn-large, .btn-outline {
    padding: 9px 18px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}



.btn-small {
    padding: 6px 12px;
    font-size: 12px;
    margin-right: 5px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    background: var(--primary-color);
    color: white;
    font-weight: 500;
}

.btn-danger {
    background: #dc3545;
    color: white;
}


.btn-primary {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: white;
    color: var(--text-gray);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: #f3f4f6;
    color: var(--text-dark);
}

.btn-outline {
    background-color: transparent;
    color: var(--text-gray);
    border: 1px solid var(--border-color);
    transition: all 0.2s;
}

.btn-outline:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background-color: #f5f3ff;
}

.btn-large {
    padding: 15px 40px;
    font-size: 18px;
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    font-weight: 600;
}

/* Landing Page */
.landing {
    text-align: center;
}

.hero {
    padding: 100px 20px;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    color: var(--text-dark);
    font-weight: 800;
}

.hero p {
    font-size: 20px;
    color: var(--text-gray);
    margin-bottom: 30px;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    padding: 60px 20px;
}

.feature {
    padding: 20px;
}

.feature h3 {
    margin-bottom: 10px;
    font-size: 18px;
}

.feature p {
    color: #666;
}

/* Auth Pages */
.auth-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.auth-card {
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
}

.auth-card h1 {
    margin-bottom: 30px;
    text-align: center;
}

.auth-card form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.auth-card input {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.auth-card input:focus {
    outline: none;
    border-color: #0066cc;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.auth-card button {
    padding: 12px;
    margin-top: 10px;
}

.auth-card p {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
}

.auth-card a {
    color: #0066cc;
}

/* Home/Dashboard */
.home-page {
    padding-top: 0;
}

.dashboard {
    background: white;
    padding: 40px;
    border-radius: 8px;
}

.dashboard h1 {
    margin-bottom: 10px;
}

.dashboard > p {
    color: #666;
    margin-bottom: 30px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.card {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #eee;
}

.card h3 {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

.metric {
    font-size: 32px;
    font-weight: bold;
    color: var(--primary-color);
}

.quick-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.quick-actions a {
    padding: 12px 24px;
}

.btn-logout {
    background-color: #dc3545;
    color: white;
    padding: 8px 14px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.2s;
}

.btn-logout:hover {
    background-color: #bd2130;
}

.error-message {
    background-color: #f8d7da;
    color: #721c24;
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 15px;
    border: 1px solid #f5c6cb;
}

.user-name {
    font-size: 14px;
    color: #6b7280;
}


/* logo */
.site-logo {
    height: 50px;
    width: auto;
    display: block;
}



.success-message {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
    padding: 12px 14px;
    border-radius: 6px;
    font-size: 14px;
    margin-bottom: 10px;
}

#otp-section,
#new-password-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

#otp-section button,
#new-password-section button {
    margin-top: 0;
}

.auth-card {
    max-width: 420px;
}

.auth-card a {
    text-decoration: none;
}

.auth-card a:hover {
    text-decoration: underline;
}


.vendors-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.vendors-table th, .vendors-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.vendors-table th {
    background: #f9f9f9;
    font-weight: 600;
    color: #333;
}


/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 30px;
    border-radius: 8px;
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.close-modal {
    font-size: 28px;
    cursor: pointer;
    color: #999;
    line-height: 1;
}

.modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 10px;
}


/* form */


.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

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

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
}


/* Tabs */
.tabs {
    display: flex;
    gap: 4px;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 24px;
}

.tab-btn {
    padding: 10px 22px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-gray);
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s;
}

.tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

/* Toolbar */
.toolbar {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

/* list page toolbar */
.toolbar-list {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 16px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.toolbar-list .search-box {
    flex: 1;
    max-width: 50%;
}


/* end of list page toolbar */

.toolbar .search-box {
    flex: 1;
    min-width: 200px;
}

.toolbar select {
    padding: 9px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 14px;
    background: white;
    color: var(--text-dark);
}


/* pagination */


.pagination-controls {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.pagination-controls button {
    padding: 8px 16px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: white;
    cursor: pointer;
    font-size: 14px;
}

.pagination-controls span {
    padding: 8px 12px;
    font-size: 14px;
    color: var(--text-gray);
}



.search-box {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.text-center {
    text-align: center;
}