/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', 'Helvetica', sans-serif;
    background: linear-gradient(135deg, rgb(240, 248, 255) 0%, rgb(230, 240, 250) 100%);
    padding: 20px;
    line-height: 1.6;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    background-color: rgb(255, 255, 255);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.15);
    border-radius: 10px;
    overflow: hidden;
}

/* Button Container */
.button-container {
    background-color: rgb(245, 250, 255);
    padding: 15px;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    border-bottom: 3px solid rgb(70, 130, 180);
}

.print-btn, .hidden-btn {
    padding: 12px 25px;
    font-weight: bold;
    font-size: 14px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.print-btn {
    background-color: rgb(70, 130, 180);
    color: rgb(255, 255, 255);
}

.print-btn:hover {
    background-color: rgb(50, 110, 160);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(70, 130, 180, 0.3);
}

.hidden-btn {
    background-color: rgb(220, 230, 240);
    color: rgb(50, 50, 50);
    display: none;
}

.hidden-btn.show {
    display: block;
}

.hidden-btn:hover {
    background-color: rgb(200, 220, 240);
}

/* Resume Form */
.resume-form {
    padding: 30px;
    background-color: rgb(255, 255, 255);
}

/* Header Section */
.header-section {
    background: linear-gradient(135deg, rgb(70, 130, 180) 0%, rgb(100, 150, 200) 100%);
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 15px;
    border: 3px solid rgb(50, 100, 150);
}

.name-section {
    text-align: center;
    margin-bottom: 15px;
}

.input-name {
    font-size: 32px;
    font-weight: bold;
    text-align: center;
    border: none;
    background-color: transparent;
    color: rgb(255, 255, 255);
    width: 100%;
    padding: 10px;
    outline: none;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.input-name::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.contact-section {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 15px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(255, 255, 255, 0.15);
    padding: 8px 15px;
    border-radius: 5px;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.icon {
    font-size: 18px;
}

.contact-item .input-field {
    background-color: transparent;
    border: none;
    color: rgb(255, 255, 255);
    font-weight: bold;
    outline: none;
    font-size: 14px;
    min-width: 150px;
}

.contact-item .input-field::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

/* DOB Section */
.dob-section {
    background-color: rgb(240, 248, 255);
    padding: 10px 20px;
    margin-bottom: 20px;
    border-radius: 5px;
    border: 2px solid rgb(70, 130, 180);
    display: flex;
    align-items: center;
    gap: 10px;
}

.dob-section label {
    font-weight: bold;
    color: rgb(50, 50, 50);
}

.dob-section .input-field {
    flex: 1;
    padding: 8px;
    border: 2px solid rgb(180, 200, 220);
    border-radius: 4px;
    font-weight: bold;
    background-color: rgb(255, 255, 255);
    color: rgb(50, 50, 50);
}

/* Section Styles */
.section {
    margin-bottom: 25px;
    border: 3px solid rgb(70, 130, 180);
    border-radius: 8px;
    overflow: hidden;
}

.section-title {
    background: linear-gradient(135deg, rgb(70, 130, 180) 0%, rgb(90, 140, 190) 100%);
    color: rgb(255, 255, 255);
    padding: 12px 20px;
    font-size: 18px;
    font-weight: bold;
    letter-spacing: 1px;
    text-align: center;
    border-bottom: 3px solid rgb(50, 100, 150);
}

.section-content {
    padding: 20px;
    background-color: rgb(250, 252, 255);
}

/* Textarea */
.textarea-field {
    width: 100%;
    padding: 12px;
    border: 2px solid rgb(180, 200, 220);
    border-radius: 5px;
    font-family: 'Arial', sans-serif;
    font-size: 14px;
    font-weight: bold;
    color: rgb(50, 50, 50);
    resize: vertical;
    background-color: rgb(255, 255, 255);
}

/* Table Styles */
.qualification-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 15px;
    background-color: rgb(255, 255, 255);
}

.qualification-table th {
    background-color: rgb(70, 130, 180);
    color: rgb(255, 255, 255);
    padding: 12px;
    font-weight: bold;
    text-align: center;
    border: 2px solid rgb(50, 100, 150);
}

.qualification-table td {
    padding: 10px;
    border: 2px solid rgb(180, 200, 220);
    text-align: center;
}

.table-input {
    width: 100%;
    padding: 8px;
    border: 1px solid rgb(200, 210, 220);
    border-radius: 3px;
    text-align: center;
    font-weight: bold;
    background-color: rgb(255, 255, 255);
    color: rgb(50, 50, 50);
}

.table-input:focus {
    outline: 2px solid rgb(70, 130, 180);
    background-color: rgb(255, 255, 240);
}

/* Skills Section */
.skill-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 10px;
    gap: 10px;
}

.bullet {
    color: rgb(70, 130, 180);
    font-weight: bold;
    font-size: 16px;
    margin-top: 2px;
}

.skill-input {
    flex: 1;
    padding: 10px;
    border: 2px solid rgb(180, 200, 220);
    border-radius: 4px;
    font-weight: bold;
    background-color: rgb(255, 255, 255);
    color: rgb(50, 50, 50);
    font-size: 14px;
}

.skill-input:focus {
    outline: 2px solid rgb(70, 130, 180);
    background-color: rgb(255, 255, 240);
}

/* Add Button */
.add-btn {
    padding: 8px 15px;
    background-color: rgb(100, 180, 100);
    color: rgb(255, 255, 255);
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.add-btn:hover {
    background-color: rgb(80, 160, 80);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(100, 180, 100, 0.3);
}

/* Declaration Section */
.declaration-section {
    background-color: rgb(245, 250, 255);
}

.declaration-text {
    margin-bottom: 20px;
    font-weight: bold;
    color: rgb(50, 50, 50);
}

.signature-section {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 30px;
    flex-wrap: wrap;
}

.signature-box {
    flex: 1;
    min-width: 300px;
}

.signature-box label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
    color: rgb(50, 50, 50);
}

.signature-area {
    border: 3px solid rgb(70, 130, 180);
    border-radius: 5px;
    background-color: rgb(255, 255, 255);
    cursor: crosshair;
    display: inline-block;
}

#signatureCanvas {
    display: block;
}

.signature-buttons {
    margin-top: 10px;
}

.clear-btn {
    padding: 8px 15px;
    background-color: rgb(220, 80, 80);
    color: rgb(255, 255, 255);
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.clear-btn:hover {
    background-color: rgb(200, 60, 60);
    transform: translateY(-2px);
}

.name-box {
    text-align: center;
}

.signature-name {
    font-weight: bold;
    color: rgb(50, 50, 50);
    font-size: 16px;
    margin-top: 10px;
}

/* Footer Note */
.footer-note {
    text-align: center;
    padding: 15px;
    background-color: rgb(240, 248, 255);
    border-top: 2px solid rgb(180, 200, 220);
    margin-top: 20px;
}

.footer-note p {
    color: rgb(100, 100, 100);
    font-size: 13px;
    font-weight: bold;
}

/* Print Styles */
@media print {
    body {
        background: white;
        padding: 0;
    }

    .container {
        box-shadow: none;
        border-radius: 0;
    }

    .no-print {
        display: none !important;
    }

    .resume-form {
        padding: 20px;
    }

    .input-name, .input-field, .textarea-field, .table-input, .skill-input {
        border: none !important;
        background-color: transparent !important;
        font-weight: bold !important;
    }

    .section {
        page-break-inside: avoid;
    }

    .signature-area {
        border: 2px solid rgb(0, 0, 0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        margin: 10px;
    }

    .resume-form {
        padding: 15px;
    }

    .input-name {
        font-size: 24px;
    }

    .contact-section {
        flex-direction: column;
    }

    .contact-item {
        width: 100%;
        justify-content: center;
    }

    .signature-section {
        flex-direction: column;
        align-items: stretch;
    }

    .qualification-table {
        font-size: 12px;
    }

    .qualification-table th,
    .qualification-table td {
        padding: 6px;
    }
}