/* IEEE Research Paper Aesthetic - LaTeX Exact Match */
@import url('https://fonts.googleapis.com/css2?family=Times+New+Roman&display=swap');

:root {
    --text-color: #000;
    --paper-bg: #fff;
    --app-bg: #525659;
    --font-main: 'Times New Roman', Times, serif;
}

body {
    background-color: var(--app-bg);
    margin: 0;
    padding: 40px 0;
    font-family: var(--font-main);
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

.paper-page {
    background-color: var(--paper-bg);
    width: 210mm;
    min-height: 297mm;
    padding: 24mm 16mm 16mm 16mm;
    /* Approx standard IEEE margins (top is larger) */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    box-sizing: border-box;
    margin-bottom: 20px;
    position: relative;
    /* Font settings */
    font-size: 10pt;
    line-height: 1.2;
    text-align: justify;
    text-justify: inter-word;
}

/* Header Section */
header {
    text-align: center;
    width: 100%;
    margin-bottom: 0.25in;
}

h1.paper-title {
    font-size: 24pt;
    font-weight: normal;
    /* LaTeX standard is non-bold usually, but let's check. Actually often regular for conf. */
    margin: 0 0 12pt 0;
    line-height: 1.1;
    font-family: var(--font-main);
}

/* Author Block - Flexbox to mimic the LaTeX table layout */
.author-section {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 12pt;
}

.author-block {
    text-align: center;
    min-width: 150px;
}

.author-name {
    font-size: 11pt;
    font-weight: bold;
    /* LaTeX uses \IEEEauthorblockN for name */
    margin-bottom: 2px;
}

.author-affil {
    font-size: 10pt;
    font-style: italic;
    /* \IEEEauthorblockA usually italicized in practice or by user choice, but often regular. Let's stick to italic for distinction */
}

/* Abstract and Keywords */
.abstract-container {
    margin: 0 0.25in 10pt 0.25in;
    /* Indented from global margins */
    font-size: 9pt;
    font-weight: bold;
}

.abstract-label {
    font-style: italic;
    font-weight: bold;
}

.keywords-container {
    margin: 0 0.25in 15pt 0.25in;
    font-size: 9pt;
    font-weight: bold;
}

.keywords-label {
    font-style: italic;
    font-weight: bold;
}

/* Columns */
.ieee-columns {
    column-count: 2;
    column-gap: 0.2in;
    /* Standard IEEE column gap */
    width: 100%;
    height: 100%;
}

/* Headings */
h2 {
    font-size: 10pt;
    /* Usually same as body, sometimes 12pt. 10pt small-caps is common */
    text-transform: uppercase;
    text-align: center;
    font-weight: normal;
    /* Small caps handles the weight perception */
    font-variant: small-caps;
    margin-top: 12pt;
    margin-bottom: 6pt;
    letter-spacing: 0.5px;
}

.section-number {
    margin-right: 0.5em;
}

h3 {
    font-size: 10pt;
    font-style: italic;
    font-weight: normal;
    text-align: left;
    margin-top: 10pt;
    margin-bottom: 4pt;
}

h4 {
    font-size: 10pt;
    font-style: italic;
    text-indent: 1em;
    /* Subsubsection often indented in run-in text, but standalone is better for web */
    display: inline;
}

/* Content */
p {
    margin: 0;
    text-indent: 1em;
    /* Standard paragraph indent */
    margin-bottom: 4pt;
    /* Slight separation */
}

p.no-indent {
    text-indent: 0;
}

/* Lists */
ul {
    margin: 4pt 0 4pt 1.5em;
    padding: 0;
}

/* Figures/Tables */
/* Tables */
.ieee-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 8pt;
    margin-bottom: 5px;
    border-top: 1px double #000;
    /* Double border attempt (browsers might render as single depending on width) */
    border-bottom: 1px solid #000;
}

/* Actually standard IEEE is closer to this: */
.ieee-table th {
    border-top: 1px solid #000;
    border-bottom: 1px solid #000;
    padding: 2px;
    text-align: center;
    font-weight: normal;
    font-variant: small-caps;
}

.ieee-columns section {
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
    page-break-inside: avoid;
    margin-bottom: 12pt;
}

.ieee-table td {
    padding: 2px;
    text-align: center;
    border: none;
    /* Vertical lines generally avoided in IEEE */
}

/* Double line simulation for top of table if needed, usually caption is above, then rules */
figure table {
    margin-top: 5px;
}

figure {
    margin: 10pt 0;
    width: 100%;
    break-inside: avoid;
    text-align: center;
}

figure img {
    max-width: 100%;
}

figcaption {
    margin-top: 6pt;
    font-size: 8pt;
    text-transform: uppercase;
    /* IEEE captions often uppercase "Fig. 1." */
    font-family: sans-serif;
    /* Captions often differ */
    font-weight: bold;
}

/* Links (interactive specific) */
a {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

a:hover {
    text-decoration: underline;
    color: #222;
}

footer {
    position: absolute;
    bottom: 12mm;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 8pt;
}

@media print {
    body {
        background: none;
        padding: 0;
    }

    .paper-page {
        box-shadow: none;
        margin: 0;
    }
}