html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

.survey-btn {
    background: #65a782 !important;
    color: #fff !important;
    text-transform: uppercase;
    padding: 13px 19px
}

    .survey-btn:hover {
        background: #6e6a56 !important;
        color: #fff !important
    }

/* IOS Branding Colors */
:root {
    --ios-gold: #D4AF37;
    --ios-gold-hover: #B8962E;
    --ios-warm-gray: #6F6A56;
    --ios-black: #000000;
    --ios-white: #FFFFFF;
}

/* Master Data Buttons */
.master-data-btn-primary {
    background: linear-gradient(135deg, var(--ios-gold) 0%, var(--ios-gold-hover) 100%);
    color: var(--ios-black) !important;
    border: none;
    padding: 10px 20px;
    font-weight: 600;
    border-radius: 4px;
}

.master-data-btn-primary:hover {
    background: linear-gradient(135deg, var(--ios-gold-hover) 0%, #A07D26 100%);
    color: var(--ios-black) !important;
}

.master-data-btn-secondary {
    background: var(--ios-warm-gray);
    color: #fff !important;
    border: none;
    padding: 10px 20px;
}

.master-data-btn-secondary:hover {
    background: #5a564a;
    color: #fff !important;
}

/* Right Drawer Styles */
.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1050;
    display: none;
}

.drawer-overlay.active {
    display: block;
}

.drawer {
    position: fixed;
    top: 0;
    right: -500px;
    width: 500px;
    height: 100%;
    background: white;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.2);
    z-index: 1051;
    transition: right 0.3s ease;
    overflow-y: auto;
}

.drawer.active {
    right: 0;
}

.drawer-header {
    background: var(--ios-warm-gray);
    color: white;
    padding: 20px;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.drawer-header h5 {
    margin: 0;
}

.drawer-body {
    padding: 20px;
}

.drawer-footer {
    padding: 20px;
    border-top: 1px solid #ddd;
    background: #f9f9f9;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* Table Styles */
.master-data-table-header {
    background-color: var(--ios-warm-gray);
    color: white;
}

.table-actions {
    white-space: nowrap;
}

.btn-action {
    padding: 5px 10px;
    margin: 0 2px;
    font-size: 0.875rem;
}

/* Responsive Drawer */
@media (max-width: 768px) {
    .drawer {
        width: 100%;
        right: -100%;
    }
}
