/* ===== Global ===== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    font-family:var(--font-family);
    background:#f5f7fb;
    color:var(--gray-900);
    font-size:16px;
    line-height:1.6;
}

/* ===== Header ===== */

.topbar{
    display:flex;
    align-items:center;
    justify-content:space-between;
    background:var(--primary);
    color:white;
    padding:20px 30px;
    box-shadow:var(--shadow);
}

.logo{
    display:flex;
    align-items:center;
    gap:15px;
}

.logo img{
    width:70px;
    height:auto;
}

.logo h1{
    font-size:28px;
    font-weight:700;
}

.logo p{
    font-size:14px;
    opacity:.85;
}

/* ===== Main ===== */

main{
    max-width:1200px;
    margin:40px auto;
    padding:20px;
}

.dashboard-title{
    margin-bottom:30px;
}

.dashboard-title h2{
    color:var(--primary);
    font-size:30px;
}

.dashboard-title p{
    color:var(--gray-500);
}

/* ===== Cards ===== */

.documents{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
    gap:20px;
    
    position: relative;
    overflow: hidden;
}
.document::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 350px;
    height: 350px;
    transform: translate(-50%, -50%);
    background: url("../images/logo.png") no-repeat center;
    background-size: contain;
    opacity: 0.05;
    pointer-events: none;
    z-index: 0;
}
.document > * {
    position: relative;
    z-index: 1;
}

.card{
    background:white;
    border-radius:12px;
    padding:25px;
    box-shadow:var(--shadow);
    transition:.3s;
    border:1px solid #e7e7e7;
}

.card:hover{
    transform:translateY(-5px);
}

.card h3{
    color:var(--primary);
    margin-bottom:12px;
}

.card p{
    color:#666;
    margin-bottom:20px;
}

.card a{
    display:inline-block;
    padding:10px 18px;
    background:var(--secondary);
    color:white;
    text-decoration:none;
    border-radius:6px;
    transition:.3s;
}

.card a:hover{
    background:var(--primary);
}

/* ===== Footer ===== */

footer{
    margin-top:60px;
    background:var(--primary-dark);
    color:white;
    text-align:center;
    padding:20px;
}

/* ===== Tables ===== */

table{
    width:100%;
    border-collapse:collapse;
    margin:20px 0;
}

table th{
    background:var(--primary);
    color:white;
    padding:10px;
}

table td{
    border:1px solid #ddd;
    padding:10px;
}

/* ===== Forms ===== */

input,
select,
textarea{
    width:100%;
    padding:12px;
    margin-bottom:15px;
    border:1px solid #ccc;
    border-radius:6px;
}

button{
    background:var(--primary);
    color:white;
    border:none;
    padding:12px 20px;
    border-radius:6px;
    cursor:pointer;
}

button:hover{
    background:var(--secondary);
}/* ==========================================
   Document Header
========================================== */

.document-header{

    display:flex;

    justify-content:space-between;

    align-items:center;

    margin-bottom:25px;

    gap:20px;

}

.header-left{

    width:120px;

}

.company-logo{

    width:70px;

    height:auto;

}

.header-center{

    flex:1;

    text-align:center;

}

.header-center h1{

    color:var(--primary);

    font-size:30px;

    margin-bottom:8px;

}

.header-center p{

    margin:4px 0;

}

.header-right{

    width:190px;

}

.reference-table{

    width:100%;

    border-collapse:collapse;

}

.reference-table th{

    background:var(--primary);

    color:white;

    padding:8px;

    text-align:center;

}

.reference-table td{

    border:1px solid #ccc;

    padding:10px;

    text-align:center;

}

.header-divider{

    margin-top:15px;

    margin-bottom:30px;

    border:0;

    border-top:3px solid var(--primary);

}  /* ==========================================
   Document Footer
========================================== */

.document-footer{

    margin-top:40px;

    font-size:14px;

    color:#555;

}

.footer-content{

    display:flex;

    justify-content:space-between;

    align-items:center;

    margin-top:12px;

    flex-wrap:wrap;

}
.footer-left,
.footer-center,
.footer-right{

    padding:8px;

}

/* Company Seal */
.company-seal-image {
    display: block;
    width: 120px;
    height: auto;
    margin: 30px auto 0;
}
.input-line{
    border-bottom:1px solid #000;
    min-height:28px;
    margin-bottom:18px;
}

.announcement-body{
    min-height:350px;
    border:1px solid #cfcfcf;
    border-radius:8px;
    padding:20px;
    margin:15px 0 30px;
    background:#fff;
}

.announcement-notes{
    min-height:120px;
    border:1px solid #cfcfcf;
    border-radius:8px;
    padding:15px;
    margin:15px 0 30px;
    background:#fff;
}

.signature-line{
    width:250px;
    border-bottom:1px solid #000;
    margin-top:50px;
}
.form-row{
    display:flex;
    gap:20px;
    margin-bottom:20px;
}

.form-group{
    flex:1;
}

.form-group label{
    display:block;
    font-weight:bold;
    margin-bottom:6px;
}

.form-group input,
.form-group textarea{
    width:100%;
    padding:10px;
    border:1px solid #bdbdbd;
    border-radius:4px;
    font-size:14px;
    box-sizing:border-box;
}

.form-group textarea{
    resize:vertical;
}
.announcement-form{
    width:100%;
}

.form-row{
    display:flex;
    gap:20px;
    margin-bottom:18px;
}

.form-group{
    flex:1;
    margin-bottom:18px;
}

.form-group label{
    display:block;
    font-weight:700;
    margin-bottom:6px;
}

.form-group input,
.form-group textarea{
    width:100%;
    border:1px solid #bbb;
    border-radius:5px;
    padding:10px;
    font-size:15px;
    box-sizing:border-box;
    background:#fff;
}

.form-group textarea{
    resize:none;
}
.document-header{
    text-align:center;
    margin-bottom:30px;
}

.announcement-logo{
    width:80px;
    height:auto;
    display:block;
    margin:0 auto 20px;
}

.header-text h1{
    margin:0;
    font-size:31px;
    letter-spacing:1px;
}

.header-text h2{
    margin:10px 0;
    font-size:19px;
}

.notice-title{
    margin-top:18px;
    font-size:18px;
    font-weight:bold;
    letter-spacing:1px;
}
.signature-area{
    margin-top:50px;
}

.signature-box{
    width:320px;
}

.signature-line{
    width:100%;
    border-bottom:2px solid #000;
    margin-bottom:10px;
    height:50px;
}

.signature-box label{
    display:block;
    margin-top:10px;
    font-weight:600;
}

.signature-box input{
    width:100%;
    padding:8px;
    border:1px solid #999;
    border-radius:4px;
    box-sizing:border-box;
}
