/* ============================================
   LIBRAS A KILOS - COMPLETE STYLES
   ============================================ */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    min-height: 100vh;
    flex-direction: column;
    background-color: #f0f2f5;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    color: #333;
}

main {
    flex: 1 0 auto;
    padding: 20px 0 40px 0;
}

a {
    color: #00695c;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #004d40;
    margin-bottom: 10px;
}

h2 {
    font-size: 2rem;
    font-weight: 600;
    color: #00695c;
}

.flow-text {
    font-size: 1.2rem;
    color: #666;
}

/* ============================================
   NAVBAR
   ============================================ */
nav {
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

nav .brand-logo {
    font-size: 1.3rem !important;
    font-weight: 500;
    padding-left: 10px;
}

nav .brand-logo i {
    font-size: 2rem;
    margin-right: 8px;
}

nav ul li a {
    font-weight: 500;
    font-size: 0.95rem;
}

/* ============================================
   CARDS
   ============================================ */
.card {
    border-radius: 16px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.06);
    overflow: hidden;
    transition: box-shadow 0.3s ease;
    background: #ffffff;
}

.card:hover {
    box-shadow: 0 4px 24px rgba(0,0,0,0.10);
}

.card .card-content {
    padding: 24px 28px;
}

.card .card-title {
    font-weight: 600;
    font-size: 1.4rem;
    margin-bottom: 20px;
    color: #004d40;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    border-radius: 8px;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0.3px;
    padding: 0 24px;
    height: 44px;
    line-height: 44px;
}

.btn.teal {
    background: #00695c;
}

.btn.teal:hover {
    background: #004d40;
}

.btn-flat {
    width: 100%;
    text-align: center;
    margin: 5px 0;
    border-radius: 8px;
    padding: 12px 8px;
    background-color: #e0f2f1;
    transition: all 0.3s ease;
    color: #00695c;
    font-weight: 500;
    font-size: 0.85rem;
    border: 1px solid transparent;
}

.btn-flat:hover {
    background-color: #b2dfdb;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border-color: #00695c;
    text-decoration: none;
}

.btn-small {
    border-radius: 6px;
    height: 34px;
    line-height: 34px;
    padding: 0 16px;
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: none;
}

.btn-floating {
    border-radius: 50%;
    width: 48px;
    height: 48px;
    line-height: 48px;
}

.btn-floating i {
    font-size: 1.5rem;
    line-height: 48px;
}

/* ============================================
   INPUT FIELDS
   ============================================ */
.input-field input {
    font-size: 1rem;
    color: #333;
    border-bottom: 2px solid #e0e0e0;
    transition: border-color 0.3s ease;
}

.input-field input:focus {
    border-bottom: 2px solid #00695c;
    box-shadow: 0 1px 0 0 #00695c;
}

.input-field input:focus + label {
    color: #00695c;
}

.input-field label {
    color: #888;
    font-weight: 500;
}

.select-wrapper input.select-dropdown {
    color: #333;
    font-size: 1rem;
}

.select-wrapper input.select-dropdown:focus {
    border-bottom: 2px solid #00695c;
}

.dropdown-content li > span {
    color: #333;
}

.dropdown-content li > span:hover {
    background: #e0f2f1;
}

/* ============================================
   RESULT AREA
   ============================================ */
.card-panel.teal.lighten-5 {
    border-radius: 12px;
    background: #e0f2f1 !important;
    padding: 20px 24px;
    border-left: 4px solid #00695c;
}

#result-text,
#quick-result-text {
    font-weight: 700;
    color: #004d40;
    font-size: 1.8rem;
    word-break: break-word;
    margin: 0;
}

#result-detail {
    font-size: 0.95rem;
    color: #00695c;
    margin: 5px 0 0 0;
}

/* ============================================
   TABLES
   ============================================ */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

table.striped thead {
    background: #00695c;
}

table.striped thead th {
    color: #ffffff;
    font-weight: 600;
    padding: 12px 16px;
    text-align: center;
}

table.striped tbody tr:nth-child(odd) {
    background-color: #f8f9fa;
}

table.striped tbody tr:hover {
    background-color: #e0f2f1;
}

table.striped tbody td {
    padding: 10px 16px;
    text-align: center;
    color: #333;
}

table.striped tbody td a {
    color: #00695c;
    font-weight: 600;
}

/* ============================================
   COLLAPSIBLE / FAQ
   ============================================ */
.collapsible {
    border: none;
    border-radius: 8px;
    overflow: hidden;
}

.collapsible .collapsible-header {
    background: #f8f9fa;
    padding: 16px 20px;
    font-weight: 500;
    color: #333;
    border-bottom: 1px solid #eee;
    transition: background 0.2s ease;
}

.collapsible .collapsible-header:hover {
    background: #e0f2f1;
}

.collapsible .collapsible-header i {
    color: #00695c;
    margin-right: 15px;
}

.collapsible .collapsible-body {
    padding: 20px 24px;
    background: #ffffff;
    color: #555;
    line-height: 1.8;
}

/* ============================================
   FOOTER
   ============================================ */
footer.page-footer {
    padding-top: 30px;
}

footer.page-footer h5 {
    color: #ffffff;
    font-weight: 500;
    font-size: 1.1rem;
}

footer.page-footer ul li {
    margin: 5px 0;
}

footer.page-footer ul li a {
    color: #b2dfdb !important;
    transition: color 0.2s ease;
}

footer.page-footer ul li a:hover {
    color: #ffffff !important;
    text-decoration: underline;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media only screen and (max-width: 600px) {
    .brand-logo {
        font-size: 0.85rem !important;
        max-width: 55%;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .brand-logo i {
        font-size: 1.5rem;
    }
    
    h1 {
        font-size: 1.6rem !important;
    }
    
    .flow-text {
        font-size: 0.95rem !important;
    }
    
    #result-text,
    #quick-result-text {
        font-size: 1.2rem !important;
    }
    
    .btn-flat {
        padding: 8px 4px;
        font-size: 0.75rem;
    }
    
    .table-responsive table {
        font-size: 0.7rem;
    }
    
    .table-responsive table th,
    .table-responsive table td {
        padding: 6px 8px;
    }
    
    .card .card-content {
        padding: 16px;
    }
    
    .btn-floating {
        width: 36px;
        height: 36px;
        line-height: 36px;
    }
    
    .btn-floating i {
        font-size: 1.2rem;
        line-height: 36px;
    }
}

@media only screen and (max-width: 400px) {
    .brand-logo {
        font-size: 0.7rem !important;
        max-width: 45%;
    }
    
    h1 {
        font-size: 1.3rem !important;
    }
}