/* Main styles */
@import url('https://fonts.googleapis.com/css2?family=VT323&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Source+Code+Pro:wght@400;700&display=swap');

body {
    background-color: #f5f5f5;
    background-image: radial-gradient(#272626 1px, transparent 1px);
    background-size: 20px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 20px;
    font-family: 'VT323', monospace;
}

/* Receipt paper effect */
.receipt {
    background-color: #fff;
    padding: 40px;
    max-width: 380px;
    width: 100%;
    position: relative;
    font-family: 'VT323', monospace;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(0, 0, 0, 0.05);
    border-radius: 4px;
}

.receipt::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.02) 0px,
        rgba(0, 0, 0, 0.02) 1px,
        transparent 1px,
        transparent 2px
    );
    pointer-events: none;
}

.receipt::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: repeating-linear-gradient(
        90deg,
        transparent,
        transparent 10px,
        rgba(0, 0, 0, 0.1) 10px,
        rgba(0, 0, 0, 0.1) 20px
    );
}

/* Directory section */
.directory-section {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px dashed #000;
    font-family: 'Source Code Pro', monospace;
    font-size: 14px;
}

.directory-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

.directory-label {
    font-weight: bold;
}

.directory-value {
    color: #0066cc;
    cursor: pointer;
    text-decoration: none;
}

.directory-value:hover {
    text-decoration: underline;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 25px;
}

.header h1 {
    font-size: 26px;
    margin: 0;
    font-weight: bold;
    letter-spacing: 1px;
}

.header p {
    margin: 5px 0;
    font-size: 15px;
}

/* Invoice details */
.invoice-section {
    display: flex;
    justify-content: space-between;
    font-size: 16px;
    margin: 20px 0;
    padding-bottom: 10px;
    border-bottom: 1px dashed #000;
}

/* About section */
.about-section {
    margin: 10px 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.about-content {
    flex: 1;
}

.about-content p {
    margin: 5px 0;
    font-size: 16px;
    line-height: 1.4;
}

.about-section h2 {
    margin: 0;
    font-size: 30px;
    font-weight: bold;
    white-space: nowrap;
}

/* Projects section */
.projects-container {
    margin: 20px 0;
    padding: 15px 0;
    border-top: 1px dashed #000;
    border-bottom: 1px dashed #000;
}

.projects-tech-section {
    margin: 10px 0;
}

.projects-section {
    margin: 25px 0;
    border-top: 1px dashed #999;
    border-bottom: 1px dashed #999;
    padding: 20px 0;
}

.section-headers {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 15px;
}

.tech-header {
    text-align: right;
}

.projects-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 15px 0;
}

.project-header h3,
.tech-header h3 {
    font-size: 20px;
    margin: 0;
    font-weight: bold;
}

.project-item {
    font-size: 17px;
    margin: 5px 0;
}

.tech-stacks {
    text-align: right;
}

.section-divider {
    border-bottom: 1px dashed #000;
    margin: 10px 0;
}

/* Receipt details */
.receipt-details {
    margin-top: 20px;
    font-family: 'VT323';
    font-size: 17px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    position: relative;
}

.receipt-group {
    display: flex;
    flex-direction: column;
    margin: 5px;
}

.left-details {
    grid-column: 1;
}

.right-details {
    grid-column: 2;
}

.receipt-group.right-details .receipt-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 1px 0;
}

.receipt-group.right-details .receipt-row span:last-child {
    text-align: right;
    min-width: 70px;
}

.bottom-details {
    grid-column: 1 / -1;
}

.receipt-row {
    display: flex;
    margin: 1px 0;
    white-space: pre;
}

.receipt-row span:last-child {
    font-family: 'VT323';
}

.bottom-details .receipt-row {
    display: grid;
    grid-template-columns: 1fr 80px 80px;
    justify-content: end;
    text-align: right;
}

.bottom-details .receipt-row span:first-child {
    text-align: right;
}

/* Footer */
.thank-you-section {
    margin: 10px 0;
    padding-top: 10px;
    border-top: 1px dashed #000;
}

.thank-you {
    text-align: center;
    font-size: 21px;
    font-weight: bold;
    margin: 5px 0;
}

.datetime {
    margin: -1px;
    text-align: center;
    font-size: 16px;
}

.barcode {
    text-align: center;
}

.barcode a {
    display: inline-block;
    cursor: pointer;
}

.barcode p {
    color: #999;
}

.barcode svg {
    max-width: 100%;
    height: auto;
}

.github-link {
    font-size: 11px;
    margin-top: 0px;
    color: #333;
}

/* Catalog Container */
.catalog-container {
    background-color: #f5f5f5;
    min-height: 100vh;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.catalog-drawer {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 600px;
    overflow: hidden;
}

/* Year Section */
.year-section {
    margin-bottom: 20px;
}

.year-tab {
    background-color: #000;
    color: white;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Source Code Pro', monospace;
    font-size: 14px;
}

.year-label {
    font-weight: bold;
}

.project-count {
    font-family: 'VT323', monospace;
}

/* Project Tabs */
.projects-list {
    background: white;
}

.project-tab {
    border-bottom: 1px solid #eee;
}

.project-tab:last-child {
    border-bottom: none;
}

.project-row {
    padding: 16px 20px;
    display: grid;
    grid-template-columns: 80px 1fr 1fr 30px;
    gap: 20px;
    align-items: center;
    cursor: pointer;
    font-family: 'Source Code Pro', monospace;
    transition: background-color 0.2s;
}

.project-row:hover {
    background-color: #f8f8f8;
}

.project-id {
    color: #666;
    font-family: 'VT323', monospace;
    font-size: 14px;
}

.project-name {
    font-size: 14px;
}

.project-tech {
    font-size: 14px;
    color: #666;
    text-align: right;
}

.expand-icon {
    color: #666;
    font-size: 16px;
    text-align: right;
    transition: transform 0.3s ease;
}

.expand-icon::after {
    content: '\02795'; /* Unicode character for "plus" sign (+) */
    font-size: 13px;
    color: #0066cc;
}

.project-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
    background-color: #f8f8f8;
    border-top: 1px solid #eee;
}

.project-tab.expanded .project-content {
    max-height: 500px;
}

.project-tab.expanded .expand-icon::after {
    content: '\2796'; /* Unicode character for "minus" sign (-) */
    color: #0066cc;
}

.project-image {
    width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 20px 0;
}

.project-description {
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    margin: 0;
    padding: 20px 20px 20px;
}

/* Back Button */
.back-button {
    display: inline-block;
    padding: 8px 16px;
    background-color: #000;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-family: 'Source Code Pro', monospace;
    font-size: 14px;
    transition: background-color 0.2s;
    margin-top: 20px;
}

.back-button:hover {
    background-color: #333;
}

/* Mobile Styles */
@media screen and (max-width: 768px) {
    .catalog-container {
        padding: 10px;
    }
    
    .project-row {
        grid-template-columns: 1fr;
        gap: 4px;
        padding: 12px 16px;
        position: relative;
    }
    
    .project-id {
        order: 1;
    }
    
    .project-name {
        order: 2;
        padding-right: 30px;
    }
    
    .project-tech {
        order: 3;
        text-align: left;
    }
    
    .expand-icon {
        position: absolute;
        right: 16px;
        top: 33px; 
        transform: translateY(-50%);
    }
    
    .project-tab.expanded .expand-icon {
        transform: translateY(-50%);
    }
    
    .bottom-details .receipt-row span:first-child {
        padding-left: 20px;
    }
}

.ongoing {
    color: green;
    font-weight: bold;
}