/* Aging In The Comfort Of Home® Brand Colors */
:root {
    --trust-blue-dark: #1b487e;
    --trust-blue: #265fa1;
    --trust-blue-light: #4aebf9;
    --radiant-gold: #d9ecff;
    --charcoal: #333333;
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --border-color: #dee2e6;
}

/* Typography */
body {
    font-family: 'Source Sans Pro', sans-serif;
    font-weight: 400;
    line-height: 1.6;
    color: var(--charcoal);
    background-color: #fffce5;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--trust-blue-dark);
}

p, li, label, input, textarea, button {
    font-family: 'Source Sans Pro', sans-serif;
    font-weight: 400;
}

/* Header Styling */
.header-container {
    background-color: #255ea0;
    color: #fffce5;
    padding: 24px 16px;
    text-align: center;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.header-content-wrapper {
    max-width: 672px;
    margin: 0 auto;
}

.header-logo {
    height: 96px;
    width: auto;
    cursor: pointer;
    transition: opacity 0.3s;
}

.header-logo:hover {
    opacity: 0.9;
}

.header-title {
    font-family: 'Montserrat', Arial, sans-serif;
    font-weight: bold;
    font-size: 24px;
    color: #fffce5;
    margin: 8px 0;
}

.header-subtitle {
    font-family: 'Source Sans Pro', Arial, sans-serif;
    font-size: 16px;
    opacity: 0.9;
    max-width: 448px;
    margin: 0 auto;
    color: #fffce5;
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
    .header-container {
        padding: 20px 12px;
    }
    
    .header-logo {
        height: 24px;
    }
    
    .header-title {
        font-size: 20px;
    }
    
    .header-subtitle {
        font-size: 14px;
    }
}



/* Card Styling */
.card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.card-header {
    background: linear-gradient(135deg, var(--trust-blue-dark) 0%, var(--trust-blue) 100%);
    color: var(--white);
    border-radius: 15px 15px 0 0 !important;
    border: none;
    padding: 1.25rem;
}

.card-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    margin: 0;
    font-weight: 700;
}

.card-body {
    padding: 1.5rem;
}

/* Input Styling */
.form-control {
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    font-family: 'Source Sans Pro', sans-serif;
}

.form-control:focus {
    border-color: var(--trust-blue);
    box-shadow: 0 0 0 0.2rem rgba(38, 95, 161, 0.25);
}

#rawJobText {
    resize: vertical;
    min-height: 300px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Button Styling */
.btn {
    border-radius: 8px;
    font-weight: 600;
    font-family: 'Source Sans Pro', sans-serif;
    transition: all 0.3s ease;
    border: none;
    padding: 0.75rem 1.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--trust-blue-dark) 0%, var(--trust-blue) 100%);
    color: var(--white);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--trust-blue) 0%, var(--trust-blue-light) 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(27, 72, 126, 0.3);
}

.btn-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: var(--white);
}

.btn-success:hover {
    background: linear-gradient(135deg, #20c997 0%, #17a2b8 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}



.btn-outline-secondary {
    border: 2px solid var(--border-color);
    color: var(--charcoal);
}

.btn-outline-secondary:hover {
    background-color: var(--charcoal);
    border-color: var(--charcoal);
    color: var(--white);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Output Styling */
.formatted-output {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    padding: 1.5rem;
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    white-space: pre-wrap;
    word-wrap: break-word;
    min-height: 300px;
    color: var(--charcoal);
    margin: 0;
}

.formatted-output.has-content {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-color: var(--trust-blue);
}

/* Instructions Styling */
.instructions-card {
    margin-top: 2rem;
}

.instructions-card .card-header {
    background: linear-gradient(135deg, var(--radiant-gold) 0%, #c6e2ff 100%);
    color: var(--charcoal);
}

.instructions-card h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--trust-blue-dark);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.instructions-card p {
    font-family: 'Source Sans Pro', sans-serif;
    font-weight: 400;
    margin-bottom: 1rem;
    color: var(--charcoal);
}

.instructions-card ul li {
    font-family: 'Source Sans Pro', sans-serif;
    font-weight: 400;
    margin-bottom: 0.5rem;
    color: var(--charcoal);
}

/* Title Formatter Styling */
.title-formatter-card .card-header {
    background: linear-gradient(135deg, var(--radiant-gold) 0%, #c6e2ff 100%);
    color: var(--charcoal);
}

.title-formatter-card .form-label {
    font-family: 'Source Sans Pro', sans-serif;
    font-weight: 600;
    color: var(--trust-blue-dark);
    margin-bottom: 0.5rem;
}

.title-formatter-card .form-control {
    font-family: 'Source Sans Pro', sans-serif;
    font-weight: 400;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.title-formatter-card .form-control:focus {
    border-color: var(--radiant-gold);
    box-shadow: 0 0 0 0.2rem rgba(217, 236, 255, 0.25);
}

.title-formatter-card #titleOutput {
    min-height: 60px;
    max-height: 60px;
    overflow-y: auto;
    padding: 0.75rem;
}

/* Star Rating Styling */
.star-rating {
    display: flex;
    gap: 2px;
    margin-top: 0.25rem;
}

.star {
    font-size: 1.5rem;
    color: #ddd;
    cursor: pointer;
    transition: color 0.3s ease;
    user-select: none;
}

.star:hover,
.star.active {
    color: #255ea0;
}

.star.hover {
    color: #255ea0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .company-logo {
        max-height: 45px;
    }
    
    .tool-title {
        font-size: 1.2rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    #rawJobText {
        min-height: 250px;
    }
    
    .formatted-output {
        min-height: 250px;
        font-size: 0.9rem;
    }
    
    .btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .company-logo {
        max-height: 35px;
    }
    
    .tool-title {
        font-size: 1.1rem;
    }
    
    .card-header {
        padding: 1rem;
    }
    
    .card-title {
        font-size: 1.1rem;
    }
}

/* Footer Styling */
.footer-container {
    background-color: #255ea0;
    color: #fffce5;
    padding: 24px 16px;
    margin-top: 48px;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.footer-content-wrapper {
    max-width: 672px;
    margin: 0 auto;
    text-align: center;
}

.footer-text {
    font-family: 'Source Sans Pro', Arial, sans-serif;
    font-size: 14px;
    color: #fffce5;
    opacity: 0.9;
    margin: 0;
}

/* Animation for success feedback */
.copy-success {
    animation: copySuccess 0.3s ease;
}

@keyframes copySuccess {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Loading state */
.btn.loading {
    position: relative;
    color: transparent;
}

.btn.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
