/* Shared Styles for Lucas Tjom Portfolio */

body {
    font-family: 'Inter', sans-serif;
}

/* Fade-in animation */
.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Form Input Styles */
.input-group {
    margin-bottom: 1.5rem;
}

.input-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #a0aec0;
    margin-bottom: 0.25rem;
}

.input-field {
    margin-top: 0.25rem;
    display: block;
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid #4a5568;
    background-color: #1a202c;
    color: #e2e8f0;
    border-radius: 0.375rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease-in-out;
}

.input-field:focus {
    outline: none;
    border-color: #0ea5e9;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

select.input-field,
.select-field {
    margin-top: 0.25rem;
    display: block;
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid #4a5568;
    background-color: #1a202c;
    color: #e2e8f0;
    border-radius: 0.375rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease-in-out;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22%23a0aec0%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20d%3D%22M5.293%207.293a1%201%200%20011.414%200L10%2010.586l3.293-3.293a1%201%200%20111.414%201.414l-4%204a1%201%200%2001-1.414%200l-4-4a1%201%200%20010-1.414z%22%20clip-rule%3D%22evenodd%22%20/%3E%3C/svg%3E');
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
    background-size: 1.5rem 1.5rem;
    padding-right: 2.5rem;
}

.select-field:focus {
    outline: none;
    border-color: #0ea5e9;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    border: 2px solid #0ea5e9;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 0.375rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    color: white;
    background-color: #0284c7;
    transition: all 0.2s ease-in-out;
    cursor: pointer;
}

.btn:hover {
    background-color: #0ea5e9;
}

.btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.5);
}

.btn-secondary {
    background-color: #475569;
    border-color: #64748b;
}

.btn-secondary:hover {
    background-color: #64748b;
}

.btn-add {
    background-color: #0284c7;
    border-color: #0ea5e9;
}

.btn-add:hover {
    background-color: #0ea5e9;
}

/* Output and Display Styles */
.output-box {
    background-color: #1a202c;
    border-left: 4px solid #0ea5e9;
    padding: 1rem;
    border-radius: 0.375rem;
    margin-bottom: 1rem;
}

.output-value {
    color: #0ea5e9;
    font-size: 1.125rem;
    font-weight: 600;
}

.output-label {
    color: #a0aec0;
    font-size: 0.875rem;
}

.section-title {
    color: #cbd5e0;
    border-bottom: 2px solid #0ea5e9;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
    font-size: 1.25rem;
    font-weight: 600;
}

/* Calculator and Content Card Styles */
.calculator-card {
    background-color: #1e293b;
    border: 1px solid #475569;
    border-radius: 0.5rem;
    padding: 1.5rem;
}

.diagram-container {
    margin-top: 1.5rem;
    padding: 1rem;
    border: 1px solid #475569;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    background-color: #1e293b;
}

/* Project Page Specific Styles */
.project-header {
    margin-bottom: 2rem;
}

.project-image {
    width: 100%;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.project-section {
    margin-bottom: 2.5rem;
}

.project-section h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: white;
    border-bottom: 2px solid #374151;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.project-section p,
.project-section ul {
    color: #9ca3af;
    line-height: 1.75;
}

.project-section ul {
    margin-top: 0.5rem;
    padding-left: 0;
    list-style: none;
}

.project-section ul li {
    display: flex;
    align-items: start;
    margin-bottom: 0.5rem;
}

.project-section ul li::before {
    content: "✓";
    color: #0ea5e9;
    font-weight: bold;
    margin-right: 0.75rem;
    margin-top: 0.25rem;
}

/* Back Link Style */
.back-link {
    color: #0ea5e9;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 2rem;
    transition: all 0.2s ease-in-out;
}

.back-link:hover {
    color: #38bdf8;
    text-decoration: underline;
}

/* Downloads Section Styles */
.downloads-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #374151;
}

.downloads-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    background-color: #1e293b;
    border-radius: 0.5rem;
    overflow: hidden;
}

.downloads-table thead {
    background-color: #0f172a;
}

.downloads-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: #e2e8f0;
    border-bottom: 2px solid #374151;
}

.downloads-table td {
    padding: 1rem;
    color: #9ca3af;
    border-bottom: 1px solid #374151;
}

.downloads-table tbody tr:last-child td {
    border-bottom: none;
}

.downloads-table tbody tr {
    transition: background-color 0.2s ease-in-out;
}

.downloads-table tbody tr:hover {
    background-color: #1e293b;
}

.download-link {
    color: #0ea5e9;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease-in-out;
}

.download-link:hover {
    color: #38bdf8;
    text-decoration: underline;
}

.download-icon {
    width: 1.25rem;
    height: 1.25rem;
}

.file-type-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.file-type-pdf {
    background-color: #dc2626;
    color: white;
}

.file-type-csv {
    background-color: #059669;
    color: white;
}

.file-type-pptx {
    background-color: #d97706;
    color: white;
}

.file-type-xlsx {
    background-color: #0ea5e9;
    color: white;
}

.file-type-zip {
    background-color: #7c3aed;
    color: white;
}

.file-type-other {
    background-color: #64748b;
    color: white;
}
