
html{
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    
}

body {
    background: #f4f4f4;
    line-height: 1.6;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS',Arial, Helvetica, sans-serif, sans-serif;
    max-height: 100vh;
    max-width: 100%;
    width: auto;
    height: 90%;
    box-sizing: border-box;
    text-align: center;
    padding: 20px;
}

.hidden {
    display: block;
}



/*Header*/
header {
    box-shadow: 0 10px 25px solid rgba(0,0,0,0.6);
    background: linear-gradient(185deg,#1f3a44,#2e5f6b);
    border-radius: 12px;
    border:1.6px solid gold;

    margin-top: 7px;
    margin-bottom: 12px;
}
h1 {
    font-family: monospace,'Courier New', Courier, monospace,Arial, Helvetica, sans-serif;
    font-weight: 650;
    color: #f4f4f4;
    margin: 10px;
}
#bottom-header{
    display: flex;
    padding: 15px;
    gap: 10px;
}
#bottom-header button{
    background: #1e293b;
    border-radius: 8px;
}
#theme-select{
    background: #1e293b;
    font-family: 'Courier New', Courier, monospace,Arial, Helvetica, sans-serif;
    font-weight: 600;
    border-radius: 10px;
    border: none;
    width: 80px;
    margin-right: auto;
}
header a{
    font-family: 'Courier New', Courier, monospace,Arial, Helvetica, sans-serif;
    font-weight: 600;
    color: #ccc;
    text-shadow: 2px solid #333;
    text-decoration: none;
}
/* Header ends here*/

ul {
    list-style: inside;
}

.section {
    text-align: left;
    display: block;
    background-color: white;
    box-shadow: 0 0 10px #0000001a;
}



/* Portfolio, portfolio headers*/
#portfolio h1, h3 {
    margin-top: 15px;
}
#portfolio {
    position: relative;
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    margin: 8px;
    padding: 15px;
    border: 0.5px solid lightblue;
    border-radius: 12px;
    box-shadow: 4px 10px 10px rgba(0,0,0,0.3);
}
/* portfolio and headers ends here*/




/* Work Experience*/
#user-date {
    border-radius: 0 8px 8px 0;
}
#user-date h2 {
    border-bottom: 2px solid #333;
}
/*work experience ends here*/




button {
    background: #1e293b;
    border: none;
    color: #f4f4f4;
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    padding: 10px;
    margin: 8px;
    cursor: pointer;
    border-radius: 10px;
}
button :hover,header a :hover {
    background-color: #333;
    transform: translateY(-5px);
    transform: scale(1.05);

}




/*Signature */
#signature-canvas {
    width: 40%;
    border: 1px solid;
    background-color: white;
    margin-bottom: 10px; 
}
#signature-canvas, button {
    margin: 10px auto;
    display: block;
}
#signature h3 {
    margin-top: 20px;
    margin-bottom: 8px;
}
#signature {
    margin-top: 15px;
    page-break-before: auto;
    break-inside: avoid;
    page-break-inside: avoid;
}
canvas{
    touch-action: none;
}
/*Sig ends here*/




/*Invoice */
#invoice th, #invoice td {
    border: 2px solid #ccc;
    text-align: left;
    padding: 8px;
}
#invoce th{
    font-family: 'Courier New', Courier, monospace,'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    font-weight: 600;
}
#invoice{
    border: 0.5px solid lightblue;
    padding:14px;
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif,'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif,Arial, Helvetica, sans-serif;
    font-weight: 500;
    margin: 8px ;
    box-shadow: 4px 10px 25px rgba(0,0,0,0.3);
    border-radius: 12px;
}
#to,#from,#total,table{
    margin: 10px;
}
td{
    padding: 10px;
    vertical-align: top;
    word-wrap: break-word;
}
table{
    max-width: 100%;
    width: 90%;
    border-collapse: collapse;
}
/* Invoice styling ends here*/



/*Ai Modal*/
#ai-modal {
    position: fixed;
    top: 0;
    margin-top: 50%;
    right: -50%;
    width: 40%;
    max-height: 300px;
    height: 100%;
    box-shadow: 2px 0 5px rgba(0,0,0,0.2);
    padding: 20px;
    transition: right 0.3s ease;
    z-index: 1000;
    overflow-y: auto;
    display: none;
}
#ai-modal.open {
    right: 0;
    display: block;
}
#ai-chat-history {
    overflow-y: auto;
    border: 1px solid #ddd;
    padding: 10px;
    margin: 10px 0;
    background: darkslategray;
    border-radius: 14px;
    color: white;
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
}
#ai-chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#chat-input{
    display: flex;
    gap: 10px;
}
#ai-chat-input {
    width: calc(100% - 80px);
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    color: #000;
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    font-weight: 500;
}
#ai-send-btn{
    background: #1e293b;
    color: #f4f4f4;
    font-family: 'Courier New', Courier, monospace;
    font-weight: 600;
}
/*Ai ends here*/

@media (max-width: 768px) {
    #ai-modal {
        width: 90%;
        right:-100%;
    }
    .section {
        padding: 10px;
        width: auto;
    }
    body {
        padding: 0;
    }
}

