* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Header Styles */
.site-header {
    background-color: #232c61;
    color: white;
    padding: 15px 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 2px solid #1a89c9;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-left .logo {
    font-size: 24px;
    font-weight: bold;
    color: white;
    text-decoration: none;
}

.header-right {
    min-height: 30px;
}

.user-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-name {
    font-size: 16px;
    color: white;
}

.logout-link {
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    border: 1px solid white;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.logout-link:hover {
    background-color: white;
    color: #232c61;
}

body {
    font-family: Arial, sans-serif;
    background-color: white;
    color: #232c61;
    line-height: 1.6;
    padding-top: 80px; /* Add padding to account for fixed header */
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

.file-upload {
    margin-bottom: 30px;
    text-align: center;
}

.file-input-wrapper {
    position: relative;
    display: inline-block;
}

#fileInput {
    opacity: 0;
    position: absolute;
    z-index: -1;
}

.file-input-label {
    display: inline-block;
    padding: 12px 24px;
    background-color: #232c61;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.file-input-label:hover {
    background-color: #1a89c9;
}

.loading {
    display: none;
    margin: 20px 0;
    text-align: center;
    color: #1a89c9;
}

.issues-container {
    margin-top: 30px;
}

.issues-list {
    list-style: none;
}

.issue-item {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    margin-bottom: 10px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.issue-item:hover {
    background-color: #e9ecef;
    color: #1a89c9;
    border-color: #1a89c9;
}

.issue-item.expanded {
    background-color: #e3f2fd;
    border-color: #1a89c9;
}

.resolution {
    margin-top: 15px;
    padding: 15px;
    background-color: white;
    border-radius: 4px;
    border-left: 4px solid #1a89c9;
    display: none;
    cursor: text;
}

.resolution.show {
    display: block;
}

.resolution-loading {
    color: #1a89c9;
    font-style: italic;
}

.error-message {
    background-color: #ffe6e6;
    color: #d32f2f;
    padding: 15px;
    border-radius: 6px;
    margin: 15px 0;
    border-left: 4px solid #d32f2f;
}

.no-issues {
    text-align: center;
    color: #28a745;
    font-size: 18px;
    margin: 30px 0;
}

.file-name {
    margin-top: 15px;
    font-size: 14px;
    color: #666;
}

/* Auth Section Styles */
.auth-section {
    text-align: center;
    margin-bottom: 40px;
}

.user-welcome-card,
.login-card {
    max-width: 500px;
    margin: 0 auto;
    padding: 30px;
    border: 2px solid #e0e7ff;
    border-radius: 12px;
    background-color: #f8faff;
    box-shadow: 0 4px 12px rgba(35, 44, 97, 0.1);
    transition: all 0.3s ease;
}

.user-welcome-card:hover,
.login-card:hover {
    border-color: #1a89c9;
    box-shadow: 0 6px 20px rgba(35, 44, 97, 0.15);
}

.welcome-message h3,
.login-message h3 {
    color: #232c61;
    margin-bottom: 20px;
    font-size: 24px;
    font-weight: bold;
}

.user-details {
    margin-bottom: 20px;
}

.user-details strong {
    color: #232c61;
    font-size: 18px;
    display: block;
    margin-bottom: 8px;
}

.user-email {
    color: #666;
    font-size: 14px;
    font-style: italic;
}

.user-avatar {
    margin: 20px 0;
}

.profile-pic {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid #1a89c9;
    box-shadow: 0 2px 8px rgba(26, 137, 201, 0.3);
}

.logout-section {
    margin-top: 25px;
}

.logout-btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: #dc3545;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid #dc3545;
}

.logout-btn:hover {
    background-color: white;
    color: #dc3545;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

.login-message {
    margin-bottom: 30px;
}

.login-message p {
    color: #666;
    margin-bottom: 0;
    font-size: 16px;
    line-height: 1.5;
}

.login-actions {
    margin-top: 25px;
}

.google-login-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 15px 30px;
    background-color: #4285f4;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    font-size: 16px;
    transition: all 0.3s ease;
    border: 2px solid #4285f4;
    box-shadow: 0 2px 8px rgba(66, 133, 244, 0.3);
}

.google-login-btn:hover {
    background-color: #3367d6;
    border-color: #3367d6;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(66, 133, 244, 0.4);
    color: white;
}

.google-icon {
    background-color: white;
    color: #4285f4;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
}

/* API Usage Page Styles */
.api-usage-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e0e0e0;
}

.page-header h1 {
    color: #333;
    margin: 0;
}

.month-selector {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.month-selector select {
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
}

.month-selector button {
    padding: 0.5rem 1rem;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
}

.month-selector button:hover {
    background-color: #0056b3;
}

.usage-table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
}

.usage-table thead {
    background-color: #f8f9fa;
}

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

.usage-table td {
    padding: 1rem;
    border-bottom: 1px solid #dee2e6;
}

.usage-table tbody tr:hover {
    background-color: #f8f9fa;
}

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

.count-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-weight: 600;
    min-width: 40px;
    text-align: center;
}

.count-resolution {
    background-color: #d1ecf1;
    color: #0c5460;
}

.count-analyze {
    background-color: #d4edda;
    color: #155724;
}

.no-data {
    text-align: center;
    padding: 3rem;
    color: #6c757d;
    font-size: 1.1rem;
}

.summary-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.summary-card {
    background-color: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.summary-card h3 {
    margin: 0 0 0.5rem 0;
    color: #6c757d;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
}

.summary-card .value {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
}

.back-link {
    display: inline-block;
    margin-bottom: 1rem;
    color: #007bff;
    text-decoration: none;
}

.back-link:hover {
    text-decoration: underline;
}

