/* Import Fonts */
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700&family=Source+Serif+Pro:wght@600;700&display=swap');

/* Global Styles */
html {
    position: relative;
    min-height: 100%;
}

body {
    font-family: 'Lato', Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Source Serif Pro', serif;
    color: #274462;
    font-weight: 600;
}

h1 {
    font-size: 42px;
    margin-bottom: 30px;
}

/* Navbar Styles */
.navbar {
    background-color: #fff;
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    min-height: 70px;
    margin-bottom: 0;
}

.navbar-brand {
    font-family: 'Source Serif Pro', serif;
    font-size: 24px;
    color: #274462 !important;
    font-weight: 700;
    padding: 25px 15px;
    transition: color 0.3s ease;
}

.navbar-brand:hover {
    color: #F1800E !important;
}

/* Container and Section Styles */
.container {
    max-width: 1170px;
}

section {
    padding: 60px 0;
    background-color: #fff;
    margin: 20px 0;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}


/* Form Styles */
.form-control {
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 16px;
    padding: 12px 15px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #004D9F;
    box-shadow: 0 0 0 0.2rem rgba(0, 77, 159, 0.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 200px;
}

select.form-control {
    height: 48px;
    cursor: pointer;
}

/* Input Group Styles */
.input-group-addon {
    background-color: #274462;
    border: none;
    color: #fff;
    font-size: 18px;
    padding: 12px 20px;
    border-radius: 6px 0 0 6px;
    transition: all 0.3s ease;
}

.input-group:hover .input-group-addon {
    background-color: #004D9F;
}

.input-group-addon .glyphicon {
    transition: transform 0.3s ease;
}

.input-group:hover .input-group-addon .glyphicon {
    transform: scale(1.1);
}

.input-group .form-control {
    border-left: none;
    border-radius: 0 6px 6px 0;
}

/* Button Styles */
.btn {
    font-family: 'Lato', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 12px 30px;
    border-radius: 6px;
    transition: all 0.3s ease;
    border: none;
    font-size: 14px;
}

.btn-primary {
    background-color: #F1800E;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.btn-primary:before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:hover {
    background-color: #d96d0c;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(241, 128, 14, 0.3);
}

.btn-primary:hover:before {
    width: 300px;
    height: 300px;
}

.btn-default {
    background-color: #fff;
    color: #004D9F;
    border: 2px solid #004D9F;
}

.btn-default:hover {
    background-color: #004D9F;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 77, 159, 0.2);
}

.btn-success {
    background-color: #274462;
    color: #fff;
}

.btn-success:hover {
    background-color: #1c3147;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(39, 68, 98, 0.3);
}

/* Alert Styles */
.alert {
    border-radius: 6px;
    border: none;
    padding: 15px 20px;
    font-size: 16px;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border-left: 4px solid #28a745;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

/* Well Styles */
.well {
    background-color: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    box-shadow: none;
    padding: 20px;
}

/* Utility Classes */
.break-word {
    word-wrap: break-word;
}

.margin-bottom-10 {
    margin-bottom: 10px;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

.justify-content-center {
    justify-content: center;
}

.text-center {
    text-align: center;
}

input[readonly].readonly-text {
    background-color: #f8f9fa;
    cursor: text;
    border-color: #e0e0e0;
}

/* Link Styles */
a {
    color: #004D9F;
    transition: color 0.3s ease;
}

a:hover {
    color: #F1800E;
    text-decoration: none;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    h1 {
        font-size: 32px;
    }
    
    section {
        padding: 40px 0;
        margin: 10px 0;
    }
    
    .navbar-brand {
        font-size: 20px;
        padding: 20px 15px;
    }
    
    .btn {
        width: 100%;
        margin-bottom: 10px;
    }
}

/* Additional Enhancements */
.row {
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

/* Footer Styles */
body {
    min-height: 100vh;
    padding-bottom: 80px; /* Space for fixed footer */
}

footer {
    position: fixed;
    bottom: 0;
    width: 100%;
}

footer a {
    transition: all 0.3s ease;
    text-decoration: none;
}

footer a:hover {
    color: #F1800E !important;
    transform: translateY(-1px);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

section {
    animation: fadeIn 0.6s ease-out;
}

/* Password Display Styles */
.password-display {
    background-color: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    padding: 20px;
    margin: 20px 0;
    font-family: 'Courier New', monospace;
    font-size: 16px;
    word-break: break-all;
}

/* Copy Button Enhancement */
.btn-copy {
    background-color: #004D9F;
    color: #fff;
}

.btn-copy:hover {
    background-color: #003d7f;
}