/* ==========================================
   SMART AI TOOLS - SHARED STYLES
========================================== */

.sat-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    font-family: Arial, sans-serif;
}

.sat-input,
.sat-select,
.sat-textarea {
    width: 100%;
    border: 1px solid #ccc;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

.sat-btn {
    border: none;
    cursor: pointer;
    color: #fff;
    font-family: Arial, sans-serif;
}

textarea {
    -webkit-appearance: none;
    appearance: none;
}

/* ==========================================
   INVOICE TOOL
========================================== */

.sbit-container {
    max-width: 1000px;
    margin: 20px auto;
    padding: 18px;
}

.sbit-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
    align-items: start;
}

.sbit-section-title {
    margin: 0 0 8px 0;
    font-size: 15px;
}

.sbit-grid input,
.sbit-grid textarea,
.sbit-items input {
    width: 100%;
    padding: 7px 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 13px;
    line-height: 1.2;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

.sbit-grid textarea {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100% !important;
    min-height: 90px !important;
    height: auto !important;
    resize: none;
    overflow: visible !important;
    box-sizing: border-box;
}

.sbit-field {
    margin-bottom: 8px;
}

.sbit-items {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.sbit-items th,
.sbit-items td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
    font-size: 13px;
}

.sbit-items th {
    background: #f7f7f7;
}

.sbit-btn {
    padding: 10px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    margin-right: 10px;
    margin-top: 12px;
}

.sbit-add {
    background: #0073aa;
    color: #fff;
}

.sbit-print {
    background: #28a745;
    color: #fff;
}

.sbit-total {
    text-align: right;
    margin-top: 20px;
    font-size: 16px;
}

.sbit-total p,
.sbit-total h2 {
    margin: 5px 0;
}

#invoice-title-input::placeholder {
    color: #999;
}

/* ==========================================
   GST CALCULATOR
========================================== */

.sat-gst-container {
    max-width: 700px;
    margin: 30px auto;
    padding: 25px;
}

.sat-gst-title {
    text-align: center;
    margin-bottom: 25px;
}

.sat-gst-title h2 {
    margin-bottom: 8px;
    font-size: 30px;
    color: #222;
}

.sat-gst-title p {
    color: #666;
    font-size: 14px;
}

.sat-gst-field {
    margin-bottom: 18px;
}

.sat-gst-field label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: bold;
    color: #333;
}

.sat-gst-field input,
.sat-gst-field select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 15px;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

.sat-gst-results {
    margin-top: 30px;
    padding: 20px;
    background: #f8f8f8;
    border-radius: 10px;
}

.sat-gst-results p {
    margin: 12px 0;
    font-size: 16px;
    color: #333;
}

.sat-gst-results h3 {
    margin-top: 20px;
    font-size: 26px;
    color: #28a745;
}

.sat-gst-btn {
    margin-top: 15px;
    padding: 12px 18px;
    border: none;
    border-radius: 8px;
    background: #0073aa;
    color: #fff;
    cursor: pointer;
    font-size: 14px;
}

.sat-gst-btn:hover {
    opacity: 0.95;
}

/* ==========================================
   INVOICE REMINDER TOOL
========================================== */

.sat-reminder-container {
    max-width: 800px;
    margin: 30px auto;
    padding: 25px;
}

.sat-reminder-title {
    text-align: center;
    margin-bottom: 25px;
}

.sat-reminder-title h2 {
    margin-bottom: 8px;
    font-size: 30px;
    color: #222;
}

.sat-reminder-title p {
    color: #666;
    font-size: 14px;
}

.sat-reminder-field {
    margin-bottom: 18px;
}

.sat-reminder-field label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: bold;
    color: #333;
}

.sat-reminder-field input,
.sat-reminder-field textarea,
.sat-reminder-field select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 15px;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

.sat-reminder-field textarea {
    min-height: 120px;
    resize: vertical;
}

.sat-reminder-results {
    margin-top: 25px;
    padding: 20px;
    background: #f8f8f8;
    border-radius: 10px;
}

.sat-reminder-results h3 {
    margin-top: 0;
}

.sat-reminder-btn {
    margin-top: 15px;
    padding: 12px 18px;
    border: none;
    border-radius: 8px;
    background: #0073aa;
    color: #fff;
    cursor: pointer;
    font-size: 14px;
}

.sat-reminder-btn:hover {
    opacity: 0.95;
}

.sat-output-box {
	margin-bottom: 30px; 
}

/* ==========================================
   MOBILE
========================================== */

@media (max-width: 768px) {

    .sbit-grid {
        grid-template-columns: 1fr;
    }

    .sat-gst-container {
        padding: 18px;
    }

    .sat-gst-title h2 {
        font-size: 24px;
    }

}

/* ==========================================
   PRINT
========================================== */

@media print {

    /* Hide everything on page */

    body * {
        visibility: hidden !important;
    }

    /* Show invoice tool only */

    #sat-print-area,
    #sat-print-area * {
        visibility: visible !important;
    }

    /* Position invoice at top */

    #sat-print-area {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        margin: 0;
        padding: 10px;
        background: #fff;
        box-shadow: none !important;
    }

    /* Hide buttons */

    .sbit-btn,
    .sat-gst-btn,
	.sat-reminder-btn,
    .invoice-title-wrapper {
        display: none !important;
    }

    /* Keep invoice layout */

    .sbit-grid {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 15px !important;
        align-items: start !important;
    }

    /* Remove borders from fields */

    .sbit-grid input,
    .sbit-grid textarea,
    .sbit-items input,
	.sat-gst-field input,
	.sat-gst-field select,
	.sat-reminder-field input,
	.sat-reminder-field textarea,
	.sat-reminder-field select	{
        border: none !important;
        box-shadow: none !important;
        outline: none !important;
        background: transparent !important;
        padding: 2px 0 !important;
        font-size: 12px !important;
    }

    /* Clean table */

    .sbit-items th,
    .sbit-items td {
        border: none !important;
        padding: 5px !important;
    }

    .sbit-section-title {
        margin-bottom: 5px !important;
    }

}