/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /*+placement: ;*/
    position: relative;
    left: 0;
    top: 0;
}

label.detail-label {
    margin-left: 7px;
    font-size: smaller;
}

.center-signature {
    /*+placement: 0px 160px;*/
    position: relative;
    left: 0px;
    top: 160px;
}

div.keterangan {
    margin-bottom: 0;
    margin-top: 13px;
}

table.biodata {
    padding-left: 39px;
}

div.content p {
    margin-bottom: 37px;
    margin-top: 12px;
}

h2 {
    font-size: 18px;
}

h2.surat-title {
    text-align: center;
}

.surat-info p.nomor {
    text-align: center;
    margin-bottom: 16px;
}

.detail-content {
    border: 1px solid black;
    padding: 10px 5px 5px;
    /*+border-radius: 6px;*/
    -moz-border-radius: 6px;
    -webkit-border-radius: 6px;
    -khtml-border-radius: 6px;
    border-radius: 6px;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #B0CBF5;
    color: #333;
    line-height: 1.6;
}

/* Login Container */
.login-container {
    max-width: 350px;
    margin: 50px auto;
    padding: 30px;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.login-container h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #2C3E50;
    font-size: 14px;
}

.form-group {
    margin-bottom: 15px;
}

.form-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #DDD;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    color: #0C6DFF;
}

.form-input:focus {
    outline: none;
    border-color: #3498DB;
}

/* Error Message */
.error-message {
    color: #E74C3C;
    text-align: center;
    margin-top: 10px;
}

/* Main Container */
.main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 7px 42px 8px;
}

/* Header */
.header {
    justify-content: space-between;
    align-items: center;
    background-color: white;
    padding: 0px 15px 15px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    margin-bottom: 13px;
    text-align: center;
}

h1 {
    font-size: 20px;
    text-align: center;
}

.rt-info h1 {
    font-size: 1.5rem;
    color: #2C3E50;
}

.rt-info p {
    color: #7F8C8D;
}

table {
}

div.surat-content table {
    margin-left: 35px;
}

div.surat-info {
    margin-top: 43px;
}

.rt-info {
    margin-top: 5px;
}

/* Buttons */
.btn-login, .btn-logout, .btn-clear, .btn-back, .btn-generate, .btn-print,
.btn-pdf {
    padding: 10px 15px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-login {
    background-color: #3498DB;
    color: white;
    width: 100%;
}

.btn-logout {
    background-color: #E74C3C;
    color: white;
}

.btn-clear {
    background-color: #FE002A;
    color: white;
}

.btn-back {
    background-color: #2ECC71;
    color: white;
    position: fixed;
    left: 80%;
    top: 0;
}

.btn-generate {
    background-color: #3498DB;
    color: white;
    width: 100%;
    margin-top: 15px;
}

.btn-print, .btn-pdf {
    background-color: #2ECC71;
    color: white;
}

.btn-pdf {
    background-color: #27AE60;
}

/* Search Container */
.search-container {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.search-input {
    flex: 1;
    padding: 10px;
    border: 1px solid #DDD;
    border-radius: 6px;
    font-size: 16px;
    width: ;
}

/* Cards Grid */
.cards-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.family-group {
    border-radius: 8px;
    padding: 8px 8px 15px 9px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    margin-bottom: 9px;
}

.kk-header {
    margin-bottom: 10px;
    padding: 5px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 4px;
    font-size: large;
    color:12341;
    font-weight: bold;
}

.card {
    background: white;
    padding: 7px 15px 3px 13px;
    border-radius: 8px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.card h4 {
    margin-bottom: -4px;
    color: #2C3E50;
    font-size: 1rem;
}

.member-info {
    display: flex;
    gap: 10px;
    color: #7F8C8D;
    font-size: 0.8rem;
    margin-top: -2px;
}

span.detail-value {
    left: 122px;
    position: absolute;
    font-size: small;
}

/* Detail View */
.detail-view {
    background: white;
    padding: 3px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    position: absolute;
    width: 100%;
}

.detail-content p {
    margin: 10px 0;
    padding: 5px 0;
    border-bottom: 1px solid #ECF0F1;
}

/* Surat Form */
.surat-form {
    margin-top: 20px;
    padding: 3px;
    background: #C6D6E6;
    border-radius: 8px;
}

.specific-fields {
    margin-top: 15px;
}

.specific-fields .form-group {
    margin-bottom: 10px;
}

select, textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #DDD;
    border-radius: 6px;
    font-size: 14px;
    height: ;
    color: #000000;
}

textarea {
    min-height: 100px;
    resize: vertical;
    background-color: ;
    font-family: arial;
}

/* Surat Fullscreen View */
.surat-fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

.surat-fullscreen-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #333;
    color: white;
}

.surat-fullscreen-content {
    flex-grow: 1;
    overflow: auto;
    display: flex;
    justify-content: center;
    padding: 2px;
}

.surat-a4 {
    background: white;
    width: 210mm;
    min-height: 297mm;
    max-height: 90vh;
    overflow: auto;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    padding: 8.7mm 20mm 20mm;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .search-container {
        flex-direction: column;
    }
    
    .surat-a4 {
        width: 100%;
        padding:10 mm;
    }
    
    .surat-fullscreen-header {
        flex-direction: column;
        gap: 10px;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mb-10 {
    margin-bottom: 10px;
}

.mt-10 {
    margin-top: 10px;
}

select, textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #DDD;
    border-radius: 6px;
    font-size: 14px;
    color: #000000;
}

/* Specific styling for mobile select options */
select option {
    font-size: 10px;
}

@media (max-width: 768px) {
    select, select option {
        font-size: 14px;
    }
}
