/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    background-color: #2c3e50;
    color: white;
    padding: 2rem 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header-title {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.header-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Main Content */
.main-content {
    padding: 2rem 0;
    min-height: calc(100vh - 200px);
}

/* Summary Section */
.summary-section {
    margin-bottom: 3rem;
}

.summary-section h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: #2c3e50;
}

.summary-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.summary-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

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

.summary-card h3 {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.summary-number {
    font-size: 2rem;
    font-weight: bold;
    color: #2c3e50;
}

.summary-date {
    font-size: 1.2rem;
    color: #2c3e50;
}

/* Issues Section */
.issues-section h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.section-subtitle {
    color: #666;
    margin-bottom: 2rem;
}

/* Summary Section */
.summary-section {
    margin-bottom: 3rem;
}

.summary-section h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: #2c3e50;
}

.issue-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.issue-title {
    font-size: 1.1rem;
    color: #2c3e50;
    margin: 0;
    word-break: break-word;
    max-width: 70%;
}

.issue-status {
    font-size: 0.9rem;
    color: #666;
    white-space: nowrap;
}

.issue-status-production {
    color: #e74c3c;
    font-weight: 500;
}

/* Issue Details */
.issue-details {
    padding: 1.5rem;
}

.detail-row {
    display: flex;
    margin-bottom: 0.8rem;
}

.detail-label {
    font-weight: 500;
    color: #666;
    width: 140px;
    flex-shrink: 0;
}

.detail-value {
    color: #333;
}

/* Tags */
.tags {
    margin-top: 1rem;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.tag-sdk {
    background-color: #f0f4c3;
    color: #827717;
}

.tag-binder {
    background-color: #ffccbc;
    color: #bf360c;
}

/* Log Section */
.log-section {
    border-top: 1px solid #e9ecef;
    padding: 1rem 1.5rem;
}

.log-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.status-icon {
    font-size: 1.2rem;
}

.status-text {
    color: #666;
    font-size: 0.9rem;
}

.toggle-log-btn {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
}

.toggle-log-btn:hover:not(:disabled) {
    background-color: #2980b9;
}

.toggle-log-btn:disabled {
    background-color: #bdc3c7;
    cursor: not-allowed;
}

.log-container {
    margin-top: 1rem;
    transition: all 0.3s ease;
}

.log-container.hidden {
    display: none;
}

/* File Upload Section */
.log-upload-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.file-input {
    display: none;
}

.file-label {
    background-color: #27ae60;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
}

.file-label:hover {
    background-color: #229954;
}

.or-text {
    color: #666;
    font-size: 0.9rem;
}

.log-textarea {
    width: 100%;
    min-height: 200px;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9rem;
    resize: vertical;
    background-color: #f8f9fa;
}

.log-textarea:focus {
    outline: none;
    border-color: #3498db;
}

/* Footer */
.footer {
    background-color: #2c3e50;
    color: white;
    text-align: center;
    padding: 1.5rem 0;
    margin-top: 3rem;
}

.footer p {
    margin: 0.25rem 0;
    opacity: 0.9;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-title {
        font-size: 2rem;
    }
    
    .header-subtitle {
        font-size: 1rem;
    }
    
    .summary-cards {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1rem;
    }
    
    .issue-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .issue-title {
        max-width: 100%;
    }
    
    .detail-row {
        flex-direction: column;
        margin-bottom: 0.5rem;
    }
    
    .detail-label {
        width: auto;
        margin-bottom: 0.2rem;
    }
}

/* Print Styles */
@media print {
    body {
        background-color: white;
    }
    
    .header {
        background-color: white;
        color: #2c3e50;
        border-bottom: 2px solid #2c3e50;
    }
    
    .issue-card {
        box-shadow: none;
        border: 1px solid #ddd;
        page-break-inside: avoid;
    }
    
    .toggle-log-btn {
        display: none;
    }
    
    .log-container {
        display: block !important;
    }
    
    .footer {
        background-color: white;
        color: #2c3e50;
        border-top: 2px solid #2c3e50;
    }
}
