/* General Styling */
body {
    font-family: 'Inter', sans-serif;
    background-color: #f4f7fa;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    margin: 0;
    color: #333;
}

.page-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.main-content {
    padding: 20px;
    width: 90%;
    max-width: 1400px;
    margin: 20px auto;
}

h1, h2, h3 {
    color: #2c3e50;
}

/* Navbar */
.top-navbar {
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 0 5%;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
}

.navbar-brand {
    font-weight: 700;
    font-size: 20px;
    color: #008080; /* Warna apotek */
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px; /* Jarak antara ikon dan teks */
}

.navbar-brand .fa {
    font-size: 24px;
}

.navbar-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 15px;
}

.navbar-menu li a {
    text-decoration: none;
    color: #555;
    padding: 10px 15px;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s;
}

.navbar-menu li.active a, .navbar-menu li a:hover {
    background-color: #008080; /* Warna apotek */
    color: #fff;
}

.navbar-user {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logout-btn {
    background-color: #e74c3c;
    color: white;
    padding: 8px 12px;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s;
}

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

/* Content Header */
.content-header {
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

/* Dashboard Cards */
.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.card {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    transition: transform 0.2s;
}
.card:hover {
    transform: translateY(-5px);
}
.card h3 {
    margin-top: 0;
}
.card p {
    font-size: 2em;
    font-weight: 600;
    margin: 10px 0;
    color: #008080; /* Warna apotek */
}
.card small {
    color: #7f8c8d;
}

/* Tables */
.content-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}
.content-table th, .content-table td {
    padding: 12px 15px;
    border: 1px solid #ddd;
    text-align: left;
}
.content-table thead {
    background-color: #008080; /* Warna apotek */
    color: #fff;
}
.content-table tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}
.content-table tbody tr:hover {
    background-color: #f1f1f1;
}

/* Buttons */
.btn-add {
    display: inline-block;
    background-color: #2ecc71;
    color: white;
    padding: 10px 15px;
    text-decoration: none;
    border-radius: 5px;
    margin-bottom: 20px;
}
.action-btn {
    padding: 5px 10px;
    border-radius: 3px;
    text-decoration: none;
    color: white;
    margin-right: 5px;
}
.btn-edit { background-color: #f39c12; }
.btn-delete { background-color: #e74c3c; }
.btn-submit {
    background-color: #008080; /* Warna apotek */
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

/* Forms */
.form-container {
    background-color: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    max-width: 600px;
    margin: 20px auto;
}
.form-group {
    margin-bottom: 15px;
}
.form-group label {
    display: block;
    margin-bottom: 5px;
}
.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}

/* Alerts */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
}
.alert-success { background-color: #d4edda; color: #155724; }
.alert-danger { background-color: #f8d7da; color: #721c24; }

/* Login Page */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}
.login-box {
    width: 350px;
    padding: 40px;
    background: #fff;
    box-shadow: 0 15px 25px rgba(0,0,0,.1);
    border-radius: 10px;
    text-align: center;
}

/* POS Transaksi */
.pos-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: flex-start;
}
.product-list {
    flex: 3;
    min-width: 300px;
}
.cart-section {
    flex: 2;
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    position: sticky;
    top: 80px; /* height of navbar + margin */
    min-width: 300px;
}
.search-input {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 5px;
    border: 1px solid #ccc;
}
.btn-add-cart {
    background-color: #27ae60;
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
}
.qty-btn {
    background-color: #bdc3c7;
    border: none;
    color: #fff;
    width: 22px;
    height: 22px;
    cursor: pointer;
    border-radius: 3px;
}
.btn-delete-small {
    background-color: #c0392b;
    color: white;
    border: none;
    cursor: pointer;
    padding: 3px 6px;
    border-radius: 3px;
}
.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}
.total-section {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

/* Struk */
.table-struk {
    width: 100%;
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
}
.table-struk td {
    padding: 3px 0;
}
