:root {
    --primary-color: #4361ee;
    --primary-dark: #3a56d4;
    --secondary-color: #7209b7;
    --accent-color: #f72585;
    --success-color: #4cc9f0;
    --warning-color: #ff9e00;
    --danger-color: #ff0054;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --card-bg: #ffffff;
    --body-bg: #f0f2f5;
    --text-color: #333333;
    --text-light: #6c757d;
    --border-radius: 16px;
    --border-radius-sm: 10px;
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --box-shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.12);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --gradient-primary: linear-gradient(135deg, #4361ee, #3a56d4);
    --gradient-secondary: linear-gradient(135deg, #7209b7, #560bad);
    --gradient-accent: linear-gradient(135deg, #f72585, #b5179e);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

body {
    background: linear-gradient(135deg, #f0f2f5 0%, #e9ecef 100%);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    padding-bottom: 80px;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(67, 97, 238, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(247, 37, 133, 0.05) 0%, transparent 50%);
    z-index: -1;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    animation: fadeIn 0.8s ease-out;
}

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

/* Header */
header {
    background: var(--gradient-primary);
    color: white;
    padding: 25px 0;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(67, 97, 238, 0.2);
    border-radius: 0 0 var(--border-radius) var(--border-radius);
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-accent);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    animation: slideInLeft 0.6s ease-out;
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

.logo-icon {
    background: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.logo-icon i {
    font-size: 28px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.logo-text h1 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 5px;
    letter-spacing: -0.5px;
}

.logo-text .subtitle {
    font-size: 0.95rem;
    opacity: 0.9;
    font-weight: 400;
}

/* Navigation Tabs */
.nav-tabs {
    display: flex;
    background: var(--card-bg);
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: var(--box-shadow);
    position: relative;
    flex-wrap: wrap;
}

.nav-tabs::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 25%;
    height: 3px;
    background: var(--gradient-primary);
    transition: var(--transition);
    z-index: 1;
}

.nav-tabs[data-active-tab="bangunan"]::before { left: 0%; width: 25%; }
.nav-tabs[data-active-tab="lansekap"]::before { left: 25%; width: 25%; }
.nav-tabs[data-active-tab="masterplan"]::before { left: 50%; width: 25%; }
.nav-tabs[data-active-tab="histori"]::before { left: 75%; width: 25%; }

.tab {
    flex: 1;
    padding: 18px 20px;
    text-align: center;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    color: var(--text-light);
    min-width: 120px;
    position: relative;
    background: transparent;
    border: none;
    font-size: 1rem;
}

.tab:hover {
    color: var(--primary-color);
    background: rgba(67, 97, 238, 0.05);
}

.tab.active {
    color: var(--primary-color);
    font-weight: 700;
}

.tab i {
    margin-right: 8px;
    font-size: 1.1rem;
}

/* Tab Content */
.tab-content {
    display: none;
    animation: fadeInUp 0.5s ease-out;
}

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

.tab-content.active {
    display: block;
}

/* Calculator Grid */
.calculator-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.calc-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.calc-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient-primary);
}

.calc-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow-hover);
}

.calc-card h3 {
    color: var(--dark-color);
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--light-color);
    font-weight: 700;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.calc-card h3 i {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: 1.5rem;
}

/* Form Elements */
.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.95rem;
}

select, input, textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e9ecef;
    border-radius: var(--border-radius-sm);
    font-size: 1rem;
    transition: var(--transition);
    background: white;
    color: var(--text-color);
}

select:focus, input:focus, textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.15);
}

/* Custom Select Arrow */
select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 16px;
    padding-right: 45px;
}

/* Result Boxes */
.result-box {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: var(--border-radius-sm);
    padding: 18px;
    margin-top: 15px;
    font-weight: 600;
    border-left: 4px solid var(--primary-color);
    transition: var(--transition);
}

.result-box:hover {
    transform: translateX(5px);
    background: linear-gradient(135deg, #f1f3f9 0%, #e2e6ea 100%);
}

.result-label {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.result-value {
    font-size: 1.4rem;
    color: var(--dark-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.result-value i {
    color: var(--primary-color);
    opacity: 0.7;
}

.result-value.total {
    color: var(--accent-color);
    font-size: 1.6rem;
    font-weight: 800;
}

/* Buttons */
.action-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 25px;
}

.btn {
    padding: 15px 25px;
    border: none;
    border-radius: var(--border-radius-sm);
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex: 1;
    min-width: 150px;
    font-size: 1rem;
    letter-spacing: 0.3px;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 5px 15px rgba(67, 97, 238, 0.3);
}

.btn-primary:hover {
    background: var(--gradient-primary);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(67, 97, 238, 0.4);
}

.btn-success {
    background: var(--gradient-secondary);
    color: white;
    box-shadow: 0 5px 15px rgba(114, 9, 183, 0.3);
}

.btn-success:hover {
    background: var(--gradient-secondary);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(114, 9, 183, 0.4);
}

.btn-warning {
    background: linear-gradient(135deg, #ff9e00, #ff7b00);
    color: white;
    box-shadow: 0 5px 15px rgba(255, 158, 0, 0.3);
}

.btn-warning:hover {
    background: linear-gradient(135deg, #ff9e00, #ff7b00);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 158, 0, 0.4);
}

.btn-danger {
    background: var(--gradient-accent);
    color: white;
    box-shadow: 0 5px 15px rgba(247, 37, 133, 0.3);
}

.btn-danger:hover {
    background: var(--gradient-accent);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(247, 37, 133, 0.4);
}

/* History Section */
.history-section {
    margin-top: 30px;
    animation: fadeIn 0.6s ease-out;
}

.history-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--box-shadow);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.history-header h3 {
    color: var(--dark-color);
    font-weight: 700;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.history-header h3 i {
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.history-list {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 10px;
}

/* Custom Scrollbar */
.history-list::-webkit-scrollbar {
    width: 8px;
}

.history-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.history-list::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

.history-list::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

.history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    border-radius: var(--border-radius-sm);
    margin-bottom: 10px;
    background: #fafafa;
}

.history-item:hover {
    background: white;
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.history-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.history-info h4 {
    color: var(--dark-color);
    margin-bottom: 6px;
    font-weight: 700;
    font-size: 1.1rem;
}

.history-info p {
    color: var(--text-light);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.history-info p i {
    color: var(--primary-color);
    font-size: 0.8rem;
}

.history-value {
    font-weight: 800;
    color: var(--accent-color);
    font-size: 1.3rem;
    margin-left: 15px;
    min-width: 150px;
    text-align: right;
}

.history-actions {
    display: flex;
    gap: 10px;
    margin-left: 15px;
}

.history-btn {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-light);
}

.history-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: scale(1.1);
}

.empty-history {
    text-align: center;
    color: var(--text-light);
    padding: 50px 20px;
}

.empty-history i {
    font-size: 3.5rem;
    margin-bottom: 20px;
    opacity: 0.3;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.empty-history p {
    font-size: 1.1rem;
    font-weight: 500;
}

/* Footer */
footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--dark-color);
    color: white;
    padding: 10px;
    text-align: center;
    z-index: 100;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-content p {
    font-size: 0.95rem;
    opacity: 0.9;
}

.footer-content i {
    color: var(--success-color);
    margin: 0 5px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s;
    padding: 20px;
}

.modal-content {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    width: 90%;
    max-width: 700px;
    max-height: 85vh;
    overflow-y: auto;
    padding: 35px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
    animation: modalSlideIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

@keyframes modalSlideIn {
    from { opacity: 0; transform: translateY(-30px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--light-color);
}

.modal-header h3 {
    color: var(--dark-color);
    font-weight: 700;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-header h3 i {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.close-modal {
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--text-light);
    transition: var(--transition);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close-modal:hover {
    color: var(--danger-color);
    background: rgba(247, 37, 133, 0.1);
}

/* Rate Tables */
.rate-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 20px 0;
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.rate-table th {
    background: var(--gradient-primary);
    color: white;
    font-weight: 700;
    padding: 16px 15px;
    text-align: left;
    border: none;
    font-size: 0.95rem;
}

.rate-table th:first-child {
    border-top-left-radius: var(--border-radius-sm);
}

.rate-table th:last-child {
    border-top-right-radius: var(--border-radius-sm);
}

.rate-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    background: white;
}

.rate-table tr:last-child td {
    border-bottom: none;
}

.rate-table tr:hover td {
    background: #f8f9fa;
}

/* WhatsApp Share */
.whatsapp-share {
    display: flex;
    gap: 15px;
    margin-top: 25px;
    flex-wrap: wrap;
}

.whatsapp-share input {
    flex: 1;
    min-width: 200px;
}

/* Notification */
.notification {
    position: fixed;
    top: 25px;
    right: 25px;
    padding: 18px 25px;
    border-radius: var(--border-radius-sm);
    color: white;
    font-weight: 600;
    box-shadow: var(--box-shadow-hover);
    z-index: 1001;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideInRight 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), fadeOut 0.5s 2.5s forwards;
    min-width: 300px;
    max-width: 400px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; visibility: hidden; }
}

.notification.success {
    background: linear-gradient(135deg, rgba(76, 201, 240, 0.95), rgba(67, 97, 238, 0.95));
}

.notification.warning {
    background: linear-gradient(135deg, rgba(255, 158, 0, 0.95), rgba(255, 123, 0, 0.95));
}

.notification.error {
    background: linear-gradient(135deg, rgba(247, 37, 133, 0.95), rgba(255, 0, 84, 0.95));
}

.notification i {
    font-size: 1.3rem;
}

/* Responsive Design */
@media (max-width: 992px) {
    .calculator-grid {
        grid-template-columns: 1fr;
    }
    
    .history-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .history-value {
        text-align: left;
        margin-left: 0;
        min-width: auto;
        width: 100%;
    }
    
    .history-actions {
        align-self: flex-end;
        margin-left: 0;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    
    .nav-tabs {
        flex-direction: column;
        width: 100%;
    }
    
    .nav-tabs::before {
        display: none;
    }
    
    .tab {
        text-align: left;
        padding-left: 25px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }
    
    .tab:last-child {
        border-bottom: none;
    }
    
    .tab.active {
        background: rgba(67, 97, 238, 0.1);
        border-left: 4px solid var(--primary-color);
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
    
    .history-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .notification {
        min-width: calc(100vw - 50px);
        right: 25px;
        left: 25px;
        max-width: none;
    }
    
    .modal-content {
        padding: 25px 20px;
    }
    
    .rate-table {
        display: block;
        overflow-x: auto;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 15px;
    }
    
    .calc-card {
        padding: 25px 20px;
    }
    
    .logo {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .logo-icon {
        width: 50px;
        height: 50px;
    }
    
    .logo-icon i {
        font-size: 24px;
    }
    
    .logo-text h1 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.3rem;
    }
    
    .history-card {
        padding: 20px 15px;
    }
}

/* Loading Animation */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.loading {
    animation: pulse 1.5s ease-in-out infinite;
}

/* Badge */
.badge {
    display: inline-block;
    padding: 4px 10px;
    background: var(--gradient-accent);
    color: white;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-left: 8px;
    vertical-align: middle;
}

/* Tooltip */
[data-tooltip] {
    position: relative;
}

[data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--dark-color);
    color: white;
    padding: 8px 12px;
    border-radius: var(--border-radius-sm);
    font-size: 0.85rem;
    white-space: nowrap;
    z-index: 1000;
    margin-bottom: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

[data-tooltip]:hover::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: var(--dark-color);
    margin-bottom: 2px;
    z-index: 1000;
}

/* Print Styles */
@media print {
    .nav-tabs,
    .action-buttons,
    footer,
    .history-actions,
    .btn {
        display: none !important;
    }
    
    .container {
        max-width: 100%;
        padding: 0;
    }
    
    .calc-card {
        box-shadow: none;
        border: 1px solid #ddd;
        page-break-inside: avoid;
    }
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--card-bg);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 12px 10px;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
    z-index: 100;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(10px);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: var(--transition);
    min-width: 60px;
    text-decoration: none;
    color: var(--text-light);
    position: relative;
}

.nav-item:hover {
    background: rgba(67, 97, 238, 0.05);
    color: var(--primary-color);
}

.nav-item.active {
    color: var(--primary-color);
    background: rgba(67, 97, 238, 0.1);
}

.nav-icon {
    font-size: 1.3rem;
    margin-bottom: 4px;
    transition: var(--transition);
}

.nav-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-align: center;
}

.nav-item.active .nav-icon {
    transform: translateY(-2px);
}

.nav-badge {
    position: absolute;
    top: -5px;
    right: 5px;
    background: var(--gradient-accent);
    color: white;
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 700;
}

/* Adjust body padding for bottom nav */
body {
    padding-bottom: 120px; /* Increased for bottom nav */
}

/* Adjust footer position */
footer {
    bottom: 70px; /* Position above bottom nav */
}

/* Header yang lebih kecil */
.simple-header {
    background: var(--gradient-primary);
    color: white;
    padding: 10px 0;
    margin-bottom: 15px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(67, 97, 238, 0.2);
}

.simple-header h1 {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
}

.simple-header i {
    font-size: 1.3rem;
}

/* Layout panjang dan lebar dalam 1 baris */
.dimensions-row {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.dimension-group {
    flex: 1;
}

.dimension-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.95rem;
}

/* Tabel rate yang lebih baik */
.rates-table {
    width: 100%;
    border-collapse: collapse;
    margin: 10px 0;
    font-size: 0.9rem;
}

.rates-table th {
    background: #f8f9fa;
    color: var(--dark-color);
    font-weight: 700;
    padding: 12px 10px;
    text-align: left;
    border-bottom: 2px solid #dee2e6;
    font-size: 0.85rem;
}

.rates-table td {
    padding: 10px;
    border-bottom: 1px solid #e9ecef;
}

.rates-table tr:last-child td {
    border-bottom: none;
}

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

/* Tampilan histori yang lebih baik */
.history-detail {
    margin-top: 8px;
}

.history-type {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.history-luas {
    color: var(--text-color);
    font-size: 0.85rem;
    margin-bottom: 5px;
}

.history-harga {
    font-weight: 700;
    color: var(--accent-color);
    font-size: 0.95rem;
    margin-bottom: 5px;
}

.history-time {
    color: var(--text-light);
    font-size: 0.75rem;
    font-style: italic;
}

/* Tombol WA di histori */
.history-btn.whatsapp-btn {
    color: #25D366;
}

.history-btn.whatsapp-btn:hover {
    background-color: #25D366;
    color: white;
}

.history-btn.delete-btn {
    color: var(--accent-color);
}

.history-btn.delete-btn:hover {
    background-color: var(--accent-color);
    color: white;
}

/* Rate category styling */
.rate-category {
    background: white;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border: 1px solid #e9ecef;
}

.rate-category h4 {
    color: var(--primary-color);
    font-size: 1rem;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #f0f2f5;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .simple-header h1 {
        font-size: 1.1rem;
    }
    
    .simple-header i {
        font-size: 1.1rem;
    }
    
    .dimensions-row {
        flex-direction: column;
        gap: 10px;
    }
    
    .rates-table {
        font-size: 0.8rem;
    }
    
    .rates-table th,
    .rates-table td {
        padding: 8px 6px;
    }
}

/* Menu bottom nav adjustment */
.bottom-nav {
    padding: 8px 5px;
}

.nav-item {
    padding: 8px 5px;
    min-width: 50px;
}

.nav-icon {
    font-size: 1.1rem;
    margin-bottom: 3px;
}

.nav-label {
    font-size: 0.7rem;
}

/* Rates Section */
.rates-section {
    margin-bottom: 30px;
}

.rates-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: var(--box-shadow);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.rates-card h3 {
    color: var(--dark-color);
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--light-color);
    font-weight: 700;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.rates-card h3 i {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: 1.5rem;
}

.rates-category {
    margin-bottom: 30px;
}

.rates-category:last-child {
    margin-bottom: 0;
}

.rates-category h4 {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.rates-category h4 i {
    font-size: 1.2rem;
}

.rates-table-container {
    overflow-x: auto;
    border-radius: var(--border-radius-sm);
    border: 1px solid #e9ecef;
}

.rates-table {
    width: 100%;
    border-collapse: collapse;
}

.rates-table th {
    background: #f8f9fa;
    color: var(--dark-color);
    font-weight: 700;
    padding: 12px 15px;
    text-align: left;
    border-bottom: 2px solid #e9ecef;
    font-size: 0.9rem;
    white-space: nowrap;
}

.rates-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #e9ecef;
    font-size: 0.95rem;
}

.rates-table tr:last-child td {
    border-bottom: none;
}

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

.simple-table {
    font-size: 0.9rem;
}

.simple-table th,
.simple-table td {
    padding: 10px 12px;
}

/* Body padding adjustment for bottom nav */
body {
    padding-bottom: 80px; /* Reduced for simpler design */
}

/* Share via WA button style */
.btn-success {
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white;
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
}

.btn-success:hover {
    background: linear-gradient(135deg, #25D366, #128C7E);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4);
}

/* Project name input styling */
.form-group:first-child {
    margin-top: 5px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .simple-header h1 {
        font-size: 1.3rem;
    }
    
    .simple-header i {
        font-size: 1.5rem;
    }
    
    .rates-card {
        padding: 20px 15px;
    }
    
    .rates-table th,
    .rates-table td {
        padding: 10px 8px;
        font-size: 0.85rem;
    }
    
    .rates-category h4 {
        font-size: 1rem;
    }
}

/* Tampilan histori yang lebih baik */
.history-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.history-icon {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.history-info h4 {
    color: var(--dark-color);
    margin: 0;
    font-size: 1rem;
}

.history-detail {
    margin-top: 8px;
    padding-left: 30px;
}

.history-type {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.history-luas {
    color: var(--text-color);
    font-size: 0.85rem;
    margin-bottom: 5px;
    background: #f8f9fa;
    padding: 5px 10px;
    border-radius: 5px;
    display: inline-block;
}

.history-harga {
    font-weight: 700;
    color: var(--accent-color);
    font-size: 0.95rem;
    margin-bottom: 5px;
}

.history-time {
    color: var(--text-light);
    font-size: 0.75rem;
    font-style: italic;
    margin-top: 5px;
}

/* Tombol WA di histori */
.history-btn.whatsapp-btn {
    color: #25D366;
    background: rgba(37, 211, 102, 0.1);
}

.history-btn.whatsapp-btn:hover {
    background-color: #25D366;
    color: white;
}

.history-btn.delete-btn {
    color: var(--accent-color);
    background: rgba(247, 37, 133, 0.1);
}

.history-btn.delete-btn:hover {
    background-color: var(--accent-color);
    color: white;
}

/* Responsive untuk histori */
@media (max-width: 768px) {
    .history-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .history-actions {
        align-self: flex-end;
        margin-top: 10px;
    }
    
    .history-detail {
        padding-left: 0;
    }
}