/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #E8E8E8 url('../images/opus-back.png');
    background-repeat: no-repeat;
    background-position: bottom right;
    background-size: 400px;
    min-height: 100vh;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
}



/* Header styles */
.app-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px 30px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.app-header h1 {
    color: #2c3e50;
    font-size: 1.8rem;
    font-weight: 600;
}

.app-header nav {
    display: flex;
    gap: 15px;
}

/* Login page styles */
.login-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    max-width: 500px;
    margin: 100px auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.logo h1 {
    color: #2c3e50;
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.logo p {
    color: #7f8c8d;
    font-size: 1.1rem;
    margin-bottom: 40px;
}

.login-form {
    text-align: left;
}

/* Form styles */
.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 15px;
    border: 2px solid #e1e8ed;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #ABCB59;
    box-shadow: 0 0 0 3px rgba(171, 203, 89, 0.1);
}

.form-group input.error,
.form-group textarea.error,
.form-group select.error {
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.content-textarea {
    font-family: 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.5;
    resize: vertical;
    min-height: 400px;
}

/* Button styles */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, #ABCB59 0%, #8BA446 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(171, 203, 89, 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.9);
    color: #2c3e50;
    border: 2px solid #e1e8ed;
}

.btn-secondary:hover {
    background: #f8f9fa;
    border-color: #ABCB59;
    color: #ABCB59;
}

.btn-danger {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(231, 76, 60, 0.3);
}

.btn-danger:active {
    transform: translateY(0);
}

/* Upload section styles */
.upload-section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.upload-card h2 {
    color: #2c3e50;
    font-size: 2rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.upload-card p {
    color: #7f8c8d;
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.upload-form {
    max-width: 600px;
}

/* Process section styles */
.process-section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.file-info {
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(171, 203, 89, 0.1);
    border-radius: 10px;
    border-left: 4px solid #ABCB59;
}

.file-info h2 {
    color: #2c3e50;
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.file-info p {
    color: #7f8c8d;
    font-size: 0.9rem;
}

.process-card {
    text-align: center;
    padding: 40px;
}

.process-card h3 {
    color: #2c3e50;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.process-card p {
    color: #7f8c8d;
    margin-bottom: 30px;
}

.content-editor h3 {
    color: #2c3e50;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.content-editor p {
    color: #7f8c8d;
    margin-bottom: 25px;
}

.editor-form {
    max-width: 100%;
}

.button-group {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}

/* Message styles */
.message {
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-weight: 500;
}

.message-error {
    background: rgba(231, 76, 60, 0.1);
    color: #c0392b;
    border-left: 4px solid #e74c3c;
}

.message-warning {
    background: rgba(243, 156, 18, 0.1);
    color: #d68910;
    border-left: 4px solid #f39c12;
}

.message-success {
    background: rgba(46, 204, 113, 0.1);
    color: #27ae60;
    border-left: 4px solid #2ecc71;
}

.error-message {
    background: rgba(231, 76, 60, 0.1);
    color: #c0392b;
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    border-left: 4px solid #e74c3c;
}

/* File input styling */
input[type="file"] {
    padding: 10px;
    border: 2px dashed #e1e8ed;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
}

input[type="file"]:hover {
    border-color: #253C61;
    background: rgba(37, 60, 97, 0.05);
}

/* Bug Tracker Specific Styles */
.login-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    max-width: 500px;
    margin: 100px auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.dashboard-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.dashboard-header h1 {
    color: #2c3e50;
    margin: 0;
    font-size: 2rem;
    font-weight: 600;
}

.back-link {
    color: #ABCB59;
    text-decoration: none;
    font-weight: 500;
}

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

/* Stats cards */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: linear-gradient(135deg, #ABCB59 0%, #8BA446 100%);
    color: white;
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 20px rgba(171, 203, 89, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(171, 203, 89, 0.3);
}

.stat-card.active {
    background: linear-gradient(135deg, #8BA446 0%, #6B8A2E 100%);
    box-shadow: 0 15px 30px rgba(139, 164, 70, 0.4);
    transform: translateY(-2px);
}

.stat-number {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 14px;
    opacity: 0.9;
}

/* Table styles */
.table-container {
    overflow-x: auto;
    margin-top: 20px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.8);
}

.bugs-table {
    width: 100%;
    min-width: 800px;
    border-collapse: collapse;
    background: transparent;
}

.bugs-table th,
.bugs-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #e1e8ed;
    white-space: nowrap;
}

.bugs-table th {
    background: rgba(171, 203, 89, 0.1);
    font-weight: 600;
    color: #2c3e50;
    position: sticky;
    top: 0;
    z-index: 10;
}

.bugs-table tr:hover {
    background: rgba(171, 203, 89, 0.05);
}

.bug-link {
    color: #ABCB59;
    text-decoration: none;
    font-weight: 500;
}

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

/* Status badges */
.status {
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
}

.status.new {
    background: #e3f2fd;
    color: #1976d2;
}

.status.in_progress {
    background: #fff3e0;
    color: #f57c00;
}

.status.resolved {
    background: #e8f5e8;
    color: #388e3c;
}

.status.archived {
    background: #f8f9fa;
    color: #6c757d;
}

/* Bug detail styles */
.bug-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.info-section {
    background: rgba(255, 255, 255, 0.8);
    padding: 20px;
    border-radius: 15px;
    border-left: 4px solid #ABCB59;
}

.info-section h3 {
    margin: 0 0 15px 0;
    color: #2c3e50;
    font-size: 18px;
    font-weight: 600;
}

.info-item {
    margin-bottom: 15px;
}

.info-label {
    font-weight: 600;
    color: #555;
    margin-bottom: 5px;
}

.info-value {
    color: #333;
}

.bug-details {
    background: rgba(255, 255, 255, 0.8);
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 30px;
    border-left: 4px solid #ABCB59;
}

.bug-details h3 {
    margin: 0 0 15px 0;
    color: #2c3e50;
    font-weight: 600;
}

.bug-text {
    line-height: 1.6;
    color: #333;
    white-space: pre-wrap;
}

.screenshot {
    margin-top: 20px;
}

.screenshot img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.status-form {
    background: rgba(255, 255, 255, 0.8);
    padding: 20px;
    border-radius: 15px;
    margin-top: 30px;
    border-left: 4px solid #ABCB59;
}

.status-form h3 {
    margin: 0 0 15px 0;
    color: #2c3e50;
    font-weight: 600;
}

/* Utility classes */
.truncate {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.date {
    color: #666;
    font-size: 14px;
}

.required {
    color: #e74c3c;
}

.no-bugs {
    text-align: center;
    padding: 40px;
    color: #666;
    font-style: italic;
}

/* File input styling */
.file-input {
    border: 2px dashed #e1e8ed;
    padding: 20px;
    text-align: center;
    border-radius: 10px;
    cursor: pointer;
    transition: border-color 0.3s ease;
    background: rgba(255, 255, 255, 0.5);
    margin-bottom: 15px;
}

.file-input:hover {
    border-color: #ABCB59;
    background: rgba(171, 203, 89, 0.05);
}

.screenshot-uploads {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.screenshot-uploads .file-input {
    margin-bottom: 0;
}

input[type="file"] {
    display: none;
}

/* Mobile card layout for tables */
@media screen and (max-width: 768px) {
    .table-container {
        overflow-x: visible !important;
        background: transparent !important;
        margin-top: 20px !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .bugs-table {
        width: 100% !important;
        min-width: auto !important;
        max-width: 100% !important;
        border-collapse: separate !important;
        border-spacing: 0 !important;
        table-layout: fixed !important;
    }
    
    .bugs-table,
    .bugs-table thead,
    .bugs-table tbody,
    .bugs-table th,
    .bugs-table td,
    .bugs-table tr {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .bugs-table thead tr {
        position: absolute !important;
        top: -9999px !important;
        left: -9999px !important;
        visibility: hidden !important;
    }
    
    .bugs-table tbody {
        display: block !important;
        width: 100% !important;
    }
    
    .bugs-table tr {
        border: 1px solid #e1e8ed !important;
        margin-bottom: 15px !important;
        padding: 15px !important;
        border-radius: 10px !important;
        background: rgba(255, 255, 255, 0.9) !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
        width: 100% !important;
        max-width: 100% !important;
        display: block !important;
        box-sizing: border-box !important;
    }
    
    .bugs-table td {
        border: none !important;
        position: relative !important;
        padding: 8px 0 8px 50% !important;
        white-space: normal !important;
        text-align: left !important;
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .bugs-table td:before {
        content: attr(data-label) ": " !important;
        position: absolute !important;
        left: 6px !important;
        width: 45% !important;
        padding-right: 10px !important;
        white-space: nowrap !important;
        font-weight: 600 !important;
        color: #2c3e50 !important;
    }
    
    .bugs-table td.truncate {
        max-width: none !important;
        overflow: visible !important;
        text-overflow: initial !important;
        white-space: normal !important;
    }
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .dashboard-container {
        padding: 20px;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .app-header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .app-header nav {
        justify-content: center;
    }
    
    .login-card,
    .login-container {
        margin: 50px auto;
        padding: 30px;
    }
    
    .logo h1 {
        font-size: 2rem;
    }
    
    .upload-section,
    .process-section,
    .dashboard-container {
        padding: 30px;
    }
    
    .button-group {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
    
    .dashboard-header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .bug-info {
        grid-template-columns: 1fr;
    }
    
    .stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .login-card,
    .login-container {
        margin: 30px auto;
        padding: 25px;
    }
    
    .logo h1 {
        font-size: 1.8rem;
    }
    
    .upload-section,
    .process-section,
    .dashboard-container {
        padding: 25px;
    }
    
    .stats {
        grid-template-columns: 1fr;
    }
} 