* {
    margin: 0;
    padding: 0;
    border: 0;
    box-sizing: border-box;
    font-family: 'Fira Code', monospace;
}

body {
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
    color: #000000;
    min-height: 100vh;
    min-width: 100vw;
    display: flex;
    flex-direction: column;
}

/* Header Styles */
header {
    background: linear-gradient(135deg, #1a2980 0%, #26d0ce 100%);
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-title {
    font-size: 1.5rem;
    font-weight: bold;
}
/* About me button */
.creator-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
}

.creator-btn:hover {
    background: linear-gradient(135deg, #46da5a 0%, #c4df4d 100%);
    transform: scale(1.01);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 100;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: white;
    width: 80%;
    max-width: 600px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    display: flex;
}

.modal-image {
    width: 40%;
    background: linear-gradient(135deg, #1a2980 0%, #26d0ce 100%);
    display: flex;
    justify-content: center;
    align-items: center;

}

.modal-image i {
    font-size: 5rem;
    color: white;
}

.modal-info {
    width: 60%;
    padding: 30px;
}

.modal-info h2 {
    margin-bottom: 20px;
    color: #1a2980;
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.info-item i {
    width: 30px;
    color: #26d0ce;
    font-size: 1.2rem;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5rem;
    cursor: pointer;
    color: #000000;
}

/* Main Content of Home page*/
.main-content {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.input-section {
    width: 100%;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.input-section input,
.input-section button {
    padding: 12px;
    font-size: 1em;
    border-radius: 8px;
    border: none;
}

.input-section input {
    background: white;
    color: #000000;
    border: 1px solid #ddd;
}

.input-section button {
    background: linear-gradient(135deg, #1a2980 0%, #26d0ce 100%);
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.input-section button:hover {
    opacity: 0.8;
}


/*Home page Cheque box preview*/
.cheque {
    
    position: relative;
    width: 8.5cm;
    height: 19cm;
    background: white;
    border: 1px solid #35eb08;
    margin-right: 20px;
    padding: 20px;
    color: #000000;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    
}

.cheque-date {
    position: absolute;
    left: 0px;
    top: 80px;
    font-size: 14px;
    font-weight: bold;
    text-align: right;
    transform: rotate(-90deg);
}

.cheque-name {
    position: absolute;
    left: 40px;
    bottom: 85px;
    font-size: 14px;
    font-weight: bold;
    transform: rotate(-90deg);
}

.cheque-words {
    position:absolute;
    padding: 0px;
    margin: 0px;
    left: -40px;
    bottom: 280px;
    width: 450px;
    height: 100px;
    font-size: 14px;
    font-weight: bold;
    word-wrap: break-word;
    white-space: pre-wrap;
    line-height: 1.3;
    transform: rotate(270deg);
}

.cheque-amount {
    position: absolute;
    left: 105px;
    top: 80px;
    font-size: 14px;
    font-weight: bold;
    text-align: right;
    transform: rotate(-90deg);
    /* transform-origin: center; */
}

/* Print Settings */
@media print {
    @page {
        size: A4; /* A4 page size */
        margin: 0mm 0mm 0mm 0mm !important;
    }

    body {
        background: transparent;
        width: 210mm; /* A4 width */
        height: 297mm; /* A4 height */
        margin: 0 !important;
        padding: 0 !important;
        position: relative;
    }

    /* Hide all elements except cheque */
    header,
    .input-section,
    .header-container,
    .dropdown-container,
    .modal {
        display: none !important;
    }

    #cheque {
        position: absolute;
        top: 0 !important; /* Position at top */
        left: 50% !important; /* Center horizontally */
        transform: translateX(-50%) !important;  /*Perfect center*/
        margin: 0 !important;
        /* padding: 20px; */
        width: 8.5cm; /* Keep original cheque size */
        height: 19cm; /* Keep original cheque size */
        background: white;
        border: 1px solid #35eb08;
        box-shadow: none;
    }
}
