* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f5f5;
}

/* Sidebar Styles */
.sidebar {
    width: 250px;
    height: 100vh;
    background: linear-gradient(135deg, #1a5f1a 0%, #2d7a2d 100%);
    position: fixed;
    left: 0;
    top: 0;
    padding: 20px 0;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
}

.logo {
    text-align: center;
    padding: 20px 0;
    border-bottom: 1px solid #ffffff33;
    margin-bottom: 30px;
}

.logo h2 {
    color: #ffffff;
    font-size: 24px;
    font-weight: bold;
}

.logo p {
    color: #ffffff88;
    font-size: 12px;
    margin-top: 5px;
}

.logo-image {
    width: 80px;
    height: 80px;
    margin: 0 auto 15px;
    border-radius: 50%;
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    overflow: hidden;
}

.logo-image img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.nav-menu {
    list-style: none;
    padding: 0;
}

.nav-menu li {
    margin-bottom: 5px;
}

.nav-menu a {
    display: flex;
    align-items: center;
    padding: 15px 25px;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.nav-menu a:hover {
    background-color: #ffffff22;
    border-left-color: #ffd700;
    color: #ffd700;
}

.nav-menu a.active {
    background-color: #ffffff22;
    border-left-color: #ffd700;
    color: #ffd700;
}

.nav-menu i {
    margin-right: 15px;
    font-size: 18px;
    width: 20px;
    text-align: center;
}

/* Dropdown Styles */
.nav-dropdown {
    position: relative;
}

.nav-dropdown > a {
    justify-content: space-between;
}

.nav-dropdown > a::after {
    content: '\f107';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    transition: transform 0.3s ease;
}

.nav-dropdown.active > a::after {
    transform: rotate(180deg);
}

.dropdown-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    background-color: #ffffff11;
    border-left: 3px solid #ffd700;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.nav-dropdown.active .dropdown-menu {
    max-height: 200px;
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu a {
    padding: 12px 25px 12px 60px;
    font-size: 14px;
    border-left: none;
    background-color: transparent;
}

.dropdown-menu a:hover {
    background-color: #ffffff22;
    color: #ffd700;
}

.dropdown-menu a.active {
    background-color: #ffffff22;
    color: #ffd700;
}

/* Header Styles */
.header {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    height: 70px;
    position: fixed;
    top: 0;
    left: 250px;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
}

.header h1 {
    color: #000000;
    font-size: 24px;
    font-weight: bold;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.username {
    color: #000000;
    font-weight: 600;
}

.logout-btn {
    background-color: #000000;
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.logout-btn:hover {
    background-color: #333333;
    transform: translateY(-2px);
}

/* Main Content */
.main-content {
    margin-left: 250px;
    margin-top: 70px;
    padding: 30px;
    min-height: calc(100vh - 70px);
}

/* Form Styles */
.form-container {
    background: #ffffff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.form-title {
    color: #1a5f1a;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 25px;
    text-align: center;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333333;
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #ffd700;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.submit-btn {
    background: linear-gradient(135deg, #1a5f1a 0%, #2d7a2d 100%);
    color: #ffffff;
    border: none;
    padding: 15px 30px;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 20px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(26, 95, 26, 0.3);
}

/* Table Styles */
.table-container {
    background: #ffffff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.table-title {
    color: #1a5f1a;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 25px;
    text-align: center;
}

.parcels-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.parcels-table th,
.parcels-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.parcels-table th {
    background-color: #1a5f1a;
    color: #ffffff;
    font-weight: 600;
}

.parcels-table tr:hover {
    background-color: #f9f9f9;
}

.status-badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-pending {
    background-color: #fff3cd;
    color: #856404;
}

.status-in-transit {
    background-color: #d1ecf1;
    color: #0c5460;
}

.status-delivered {
    background-color: #d4edda;
    color: #155724;
}

.status-cancelled {
    background-color: #f8d7da;
    color: #721c24;
}

/* Alert Styles */
.alert {
    padding: 15px 20px;
    border-radius: 5px;
    margin-bottom: 20px;
    font-weight: 600;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Filters Styles */
.filters-container {
    background: #ffffff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.filters-title {
    color: #1a5f1a;
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 20px;
}

.filters-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.filters-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-group label {
    font-weight: 600;
    margin-bottom: 8px;
    color: #333333;
}

.filter-group input,
.filter-group select {
    padding: 10px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.filter-group input:focus,
.filter-group select:focus {
    outline: none;
    border-color: #ffd700;
}

.filter-actions {
    display: flex;
    gap: 15px;
    align-items: end;
}

.filter-btn {
    background: linear-gradient(135deg, #1a5f1a 0%, #2d7a2d 100%);
    color: #ffffff;
    border: none;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(26, 95, 26, 0.3);
}

.clear-btn {
    background: #6c757d;
    color: #ffffff;
    border: none;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
}

.clear-btn:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

/* Table Header */
.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.table-actions {
    display: flex;
    gap: 15px;
}

.add-btn {
    background: linear-gradient(135deg, #1a5f1a 0%, #2d7a2d 100%);
    color: #ffffff;
    border: none;
    padding: 12px 20px;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
}

.add-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(26, 95, 26, 0.3);
}

.print-btn {
    background: #ffd700;
    color: #000000;
    border: none;
    padding: 12px 20px;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.print-btn:hover {
    background: #ffed4e;
    transform: translateY(-2px);
}

/* Action Buttons */
.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 120px;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 35px;
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 12px;
    padding: 8px 12px;
    white-space: nowrap;
}

.action-btn:hover {
    transform: translateY(-2px);
}

.edit-btn {
    background-color: #007bff;
    color: #ffffff;
}

.edit-btn:hover {
    background-color: #0056b3;
}

.print-btn.action-btn {
    background-color: #28a745;
    color: #ffffff;
}

.print-btn.action-btn:hover {
    background-color: #1e7e34;
}

.label-btn {
    background-color: #ffc107;
    color: #000000;
}

.label-btn:hover {
    background-color: #e0a800;
}

.delete-btn {
    background-color: #dc3545;
    color: #ffffff;
}

.delete-btn:hover {
    background-color: #c82333;
}

/* No Data */
.no-data {
    text-align: center;
    padding: 60px 20px;
    color: #666666;
}

.no-data i {
    font-size: 48px;
    margin-bottom: 20px;
    color: #cccccc;
}

.no-data p {
    font-size: 18px;
    margin-bottom: 20px;
}

.add-link {
    color: #1a5f1a;
    text-decoration: none;
    font-weight: 600;
}

.add-link:hover {
    text-decoration: underline;
}

/* Table Responsive */
.table-responsive {
    overflow-x: auto;
}

/* Responsive Design */
@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
    }
    
    .header {
        left: 0;
    }
    
    .main-content {
        margin-left: 0;
        margin-top: 0;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .filters-row {
        grid-template-columns: 1fr;
    }
    
    .table-header {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .table-actions {
        justify-content: center;
    }
    
    .parcels-table {
        font-size: 12px;
    }
    
    .parcels-table th,
    .parcels-table td {
        padding: 8px;
    }
    
    .action-buttons {
        flex-direction: column;
        gap: 5px;
    }
    
    .action-btn {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }
} 