/* =========================================================
   SaatPro Workspace
   Meeting Minutes Generator
========================================================= */

.spw-mm-container {
    max-width: 850px;
    margin: 40px auto;
    background: #fff;
    padding: 35px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,.08);
    font-family: Arial, Helvetica, sans-serif;
    box-sizing: border-box;
}

/* =========================================================
   HEADER
========================================================= */

.spw-mm-header {
    text-align: center;
    margin-bottom: 35px;
}

.spw-mm-header h1 {
    color: #0056d2;
    margin: 0 0 10px;
    font-size: 30px;
}

.spw-mm-header p {
    color: #333;
    font-size: 18px;
    font-weight: bold;
    margin: 0 0 6px;
}

.spw-mm-header span {
    color: #666;
    font-size: 15px;
}

/* =========================================================
   FORM
========================================================= */

.spw-mm-form h2 {
    color: #0056d2;
    border-bottom: 2px solid #e5eaf2;
    padding-bottom: 10px;
    margin-top: 30px;
    margin-bottom: 25px;
}

.spw-mm-field {
    margin-bottom: 20px;
}

.spw-mm-field label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
    color: #333;
}

.spw-mm-field input,
.spw-mm-field textarea,
.spw-mm-field select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 15px;
    font-family: Arial, Helvetica, sans-serif;
    box-sizing: border-box;
    color: #333;
    background: #fff;
}

.spw-mm-field input,
.spw-mm-field select {
    height: 46px;
}

.spw-mm-field textarea {
    resize: vertical;
    min-height: 100px;
    line-height: 1.5;
}

.spw-mm-field input:focus,
.spw-mm-field textarea:focus,
.spw-mm-field select:focus {
    outline: none;
    border-color: #0056d2;
    box-shadow: 0 0 0 2px rgba(0,86,210,.08);
}

.spw-mm-required {
    color: red;
    font-weight: bold;
}

/* =========================================================
   TWO-COLUMN FORM ROW
========================================================= */

.spw-mm-row {
    display: flex;
    gap: 20px;
}

.spw-mm-row .spw-mm-field {
    flex: 1;
}

/* =========================================================
   BUTTONS
========================================================= */

.spw-mm-button-group {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 25px;
}

.spw-mm-button {
    background: #0056d2;
    color: #fff;
    padding: 13px 28px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
}

.spw-mm-button:hover {
    background: #003d99;
}

.spw-mm-secondary {
    background: #6c757d;
}

.spw-mm-secondary:hover {
    background: #545b62;
}

/* =========================================================
   OUTPUT
========================================================= */

.spw-mm-output {
    margin-top: 50px;
    padding: 30px;
    border-top: 4px solid #0056d2;
    background: #f7f9fc;
}

.spw-mm-document {
    background: #fff;
    padding: 40px;
    border: 1px solid #ddd;
    box-sizing: border-box;
}

/* =========================================================
   DOCUMENT HEADER
========================================================= */

.spw-mm-doc-header {
    text-align: center;
    border-bottom: 3px solid #0056d2;
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.spw-mm-doc-header h2 {
    color: #0056d2;
    margin: 0 0 8px;
    letter-spacing: 2px;
}

.spw-mm-doc-header p {
    margin: 5px 0;
    font-weight: bold;
    color: #333;
}

.spw-mm-doc-header span {
    color: #666;
    font-size: 14px;
}

/* =========================================================
   DOCUMENT TABLES
========================================================= */

.spw-mm-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
}

.spw-mm-table th {
    background: #f1f5fb;
    text-align: left;
    padding: 12px;
    border: 1px solid #ddd;
    color: #333;
}

.spw-mm-table td {
    padding: 12px;
    border: 1px solid #ddd;
    color: #333;
    word-break: break-word;
}

/* =========================================================
   SECTION HEADINGS
========================================================= */

.spw-mm-section-title {
    color: #0056d2;
    border-bottom: 2px solid #e5eaf2;
    padding-bottom: 10px;
    margin-top: 30px;
}

.spw-mm-document h3 {
    margin-top: 25px;
    color: #333;
}

/* =========================================================
   CONTENT SECTIONS
========================================================= */

.spw-mm-section {
    background: #fafafa;
    padding: 20px;
    border-left: 4px solid #0056d2;
    margin-bottom: 25px;
    box-sizing: border-box;
}

.spw-mm-section p {
    margin: 0;
    line-height: 1.7;
    white-space: pre-line;
    word-break: break-word;
}

/* =========================================================
   SIGNATURES
========================================================= */

.spw-mm-signature {
    width: 100%;
    margin-top: 60px;
    text-align: center;
    border-collapse: collapse;
}

.spw-mm-signature td {
    width: 50%;
    vertical-align: top;
    padding: 20px;
}

/* =========================================================
   EXPORT
========================================================= */

.spw-mm-export-section {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 2px solid #ddd;
    text-align: center;
}

.spw-mm-export-section .spw-mm-button-group {
    justify-content: center;
}

/* =========================================================
   PRINT
========================================================= */

@media print {

    body * {
        visibility: hidden;
    }

    #meetingMinutesOutput,
    #meetingMinutesOutput * {
        visibility: visible;
    }

    #meetingMinutesOutput {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        margin: 0;
        padding: 0;
        background: #fff;
    }

    .spw-mm-container {
        box-shadow: none;
        border: none;
        margin: 0;
        padding: 0;
    }

    .spw-mm-form {
        display: none !important;
    }

    .spw-mm-export-section {
        display: none !important;
    }

    .spw-mm-document {
        border: none;
        padding: 20px;
    }

    .spw-mm-section {
        break-inside: avoid;
        page-break-inside: avoid;
    }

    .spw-mm-table {
        break-inside: avoid;
        page-break-inside: avoid;
    }

    .spw-mm-signature {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 700px) {

    .spw-mm-container {
        margin: 15px auto;
        padding: 20px;
        border-radius: 8px;
    }

    .spw-mm-row {
        display: block;
    }

    .spw-mm-document {
        padding: 20px;
    }

    .spw-mm-output {
        padding: 15px;
    }

    .spw-mm-table th,
    .spw-mm-table td {
        padding: 9px;
        font-size: 13px;
    }

    .spw-mm-signature {
        display: block;
    }

    .spw-mm-signature tr {
        display: block;
    }

    .spw-mm-signature td {
        display: block;
        width: 100%;
        box-sizing: border-box;
        padding: 20px 5px;
    }

    .spw-mm-button {
        width: 100%;
    }

    .spw-mm-button-group {
        display: flex;
        flex-direction: column;
    }
}
.spw-mm-section-title {
    text-align: center;
}
/* =========================================
   AI MEETING MINUTES ASSISTANT
========================================= */

.spw-mm-ai-box {

    margin-bottom: 35px;

    padding: 30px;

    background: #f7f9fc;

    border: 1px solid #dfe5ee;

    border-radius: 10px;

}

.spw-mm-ai-box h2 {

    margin-top: 0;

    margin-bottom: 12px;

}

.spw-mm-ai-description {

    text-align: center;

    color: #666;

    font-size: 15px;

    line-height: 1.6;

    margin-bottom: 25px;

}

.spw-mm-ai-button-wrapper {

    text-align: center;

    margin-top: 20px;

}

.spw-mm-ai-button {

    background: #0056d2;

}

.spw-mm-ai-button:hover {

    background: #003d99;

}

.spw-mm-ai-status {

    text-align: center;

    margin-top: 15px;

    font-size: 14px;

}

.spw-mm-manual-divider {

    display: flex;

    align-items: center;

    gap: 15px;

    margin: 40px 0;

    color: #888;

    font-weight: bold;

}

.spw-mm-manual-divider::before,
.spw-mm-manual-divider::after {

    content: "";

    flex: 1;

    height: 1px;

    background: #ddd;

}

.spw-mm-manual-divider span {

    white-space: nowrap;

}