/* TPS Report Styles - Office Space Theme */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
    color: #333;
    line-height: 1.6;
    /* Add padding bottom to account for status bar */
    padding-bottom: 50px;
}

/* Header Styles */
.tps-header {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 30px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: bold;
}

.logo i {
    color: #3498db;
    font-size: 24px;
}

.main-nav {
    display: flex;
    gap: 20px;
}

.main-nav a {
    color: #bdc3c7;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.main-nav a:hover,
.main-nav a.active {
    background: rgba(52, 152, 219, 0.2);
    color: #3498db;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.search-box i {
    position: absolute;
    left: 12px;
    color: #7f8c8d;
}

.search-box input {
    padding: 8px 12px 8px 35px;
    border: 1px solid #34495e;
    border-radius: 5px;
    background: rgba(255,255,255,0.1);
    color: white;
    width: 250px;
}

.search-box input::placeholder {
    color: #bdc3c7;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.user-menu:hover {
    background: rgba(255,255,255,0.1);
}

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

/* Report Generator */
.report-generator {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    overflow: hidden;
}

.generator-header {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    padding: 30px;
    text-align: center;
}

.generator-header h2 {
    font-size: 28px;
    margin-bottom: 10px;
}

.generator-header .subtitle {
    font-style: italic;
    opacity: 0.9;
    font-size: 16px;
}

.form-container {
    padding: 30px;
}

.form-group {
    margin-bottom: 20px;
}

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #ecf0f1;
    border-radius: 5px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: normal;
    cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
    padding: 12px 24px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #229954 0%, #27ae60 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(39, 174, 96, 0.3);
}

.btn-secondary {
    background: #ecf0f1;
    color: #2c3e50;
    border: 1px solid #bdc3c7;
}

.btn-secondary:hover {
    background: #d5dbdb;
    transform: translateY(-1px);
}

/* Report Display */
.report-display {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    overflow: hidden;
}

.display-header {
    background: #2c3e50;
    color: white;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.report-content {
    padding: 30px;
    min-height: 300px;
    border-bottom: 1px solid #ecf0f1;
}

.report-actions {
    padding: 20px 30px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* Quotes Section */
.quotes-section {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    padding: 30px;
}

.quotes-section h3 {
    text-align: center;
    margin-bottom: 25px;
    color: #2c3e50;
    font-size: 24px;
}

.quotes-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.quote {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #3498db;
    position: relative;
}

.quote p {
    font-style: italic;
    margin-bottom: 10px;
    color: #2c3e50;
    font-size: 16px;
}

.quote span {
    color: #7f8c8d;
    font-weight: 600;
    font-size: 14px;
}

/* Tips Section */
.tips-section {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    padding: 30px;
}

.tips-section h3 {
    text-align: center;
    margin-bottom: 25px;
    color: #2c3e50;
    font-size: 24px;
}

.tips-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.tip {
    text-align: center;
    padding: 20px;
    border-radius: 8px;
    background: linear-gradient(135deg, #fff5f5 0%, #fed7d7 100%);
    border: 1px solid #feb2b2;
}

.tip i {
    font-size: 32px;
    color: #e53e3e;
    margin-bottom: 15px;
}

.tip h4 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 18px;
}

.tip p {
    color: #4a5568;
    font-size: 14px;
    line-height: 1.5;
}

/* Back Button */
.back-button {
    background: rgba(44, 62, 80, 0.8);
    color: white;
    padding: 12px 24px;
    border-radius: 5px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    font-weight: 600;
}

.back-button:hover {
    background: rgba(44, 62, 80, 1);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(44, 62, 80, 0.3);
}

/* Footer */
footer {
    text-align: center;
    padding: 30px;
    color: #7f8c8d;
    font-style: italic;
    border-top: 1px solid #ecf0f1;
    margin-top: 40px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .tps-header {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }
    
    .header-left {
        flex-direction: column;
        gap: 15px;
    }
    
    .main-nav {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .search-box input {
        width: 200px;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .quotes-container,
    .tips-container {
        grid-template-columns: 1fr;
    }
    
    .main-container {
        padding: 0 15px;
    }
    
    /* Adjust for mobile automation elements */
    body {
        padding-bottom: 60px;
    }
    
    #notification-container {
        max-width: 280px !important;
        right: 10px !important;
        top: 10px !important;
    }
    
    #status-bar {
        font-size: 11px !important;
        padding: 6px 10px !important;
    }
}

/* Special TPS Report Styles */
.tps-report {
    font-family: 'Courier New', monospace;
    background: white;
    padding: 30px;
    border: 2px solid #2c3e50;
    border-radius: 5px;
    margin: 20px 0;
}

.tps-report.urgent {
    border-color: #e74c3c;
    background: linear-gradient(135deg, #fff5f5 0%, #fed7d7 100%);
}

.tps-report.confidential {
    border-color: #f39c12;
    background: linear-gradient(135deg, #fffaf0 0%, #fef5e7 100%);
}

.cover-sheet {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    padding: 20px;
    margin-bottom: 20px;
    text-align: center;
    border-radius: 5px;
}

.cover-sheet.urgent {
    background: linear-gradient(135deg, #fff5f5 0%, #fed7d7 100%);
    border-color: #e74c3c;
    color: #c53030;
}

.cover-sheet.confidential {
    background: linear-gradient(135deg, #fffaf0 0%, #fef5e7 100%);
    border-color: #f39c12;
    color: #d69e2e;
}

.flair-section {
    background: #e8f4fd;
    border: 1px solid #bee5eb;
    padding: 15px;
    margin: 15px 0;
    border-radius: 5px;
    text-align: center;
}

.flair-section i {
    font-size: 20px;
    margin: 0 5px;
    color: #17a2b8;
}

/* Animation for flair */
@keyframes flair-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.flair-section i {
    animation: flair-bounce 2s infinite;
}

.flair-section i:nth-child(2) { animation-delay: 0.2s; }
.flair-section i:nth-child(3) { animation-delay: 0.4s; }
.flair-section i:nth-child(4) { animation-delay: 0.6s; }
.flair-section i:nth-child(5) { animation-delay: 0.8s; }

/* Content Sections */
.content-section {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    overflow: hidden;
}

.section-header {
    background: #2c3e50;
    color: white;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-content {
    padding: 30px;
}

/* Template Grid */
.template-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.template-card {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
}

.template-card h4 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.template-card p {
    color: #6c757d;
    margin-bottom: 15px;
    font-size: 14px;
}

.template-preview {
    border: 2px solid #dee2e6;
    border-radius: 5px;
    padding: 15px;
    background: white;
    font-family: 'Courier New', monospace;
    font-size: 12px;
}

.template-preview h5 {
    margin: 0 0 10px 0;
    font-weight: bold;
}

.standard-preview {
    border-color: #6c757d;
}

.professional-preview {
    border-color: #007bff;
}

.urgent-preview {
    border-color: #dc3545;
    background: #fff5f5;
}

.confidential-preview {
    border-color: #ffc107;
    background: #fffaf0;
}

/* Memo Section */
.memo-info h4 {
    color: #2c3e50;
    margin-bottom: 15px;
}

.memo-example {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
}

.memo-example h5 {
    color: #856404;
    margin-bottom: 15px;
}

.memo-content {
    background: white;
    padding: 15px;
    border-radius: 5px;
    border: 1px solid #ffeaa7;
}

.memo-content p {
    margin: 5px 0;
    font-size: 14px;
}

/* Settings Section */
.settings-info h4 {
    color: #2c3e50;
    margin-bottom: 15px;
}

.indicators-preview {
    background: #e8f4fd;
    border: 1px solid #bee5eb;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
}

.indicators-preview h5 {
    color: #0c5460;
    margin-bottom: 15px;
}

.indicator-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
    margin-bottom: 15px;
}

.indicator {
    background: white;
    border: 1px solid #bee5eb;
    border-radius: 5px;
    padding: 8px;
    text-align: center;
    font-size: 14px;
}

.note {
    font-style: italic;
    color: #6c757d;
    font-size: 12px;
    margin: 0;
}

/* Help Section */
.help-info h4 {
    color: #2c3e50;
    margin-bottom: 20px;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.contact-card {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
}

.contact-card h5 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.contact-card p {
    margin: 5px 0;
    font-size: 14px;
    color: #6c757d;
}

.system-status {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 8px;
    padding: 20px;
}

.system-status h5 {
    color: #155724;
    margin-bottom: 15px;
}

.system-status p {
    margin: 5px 0;
    font-size: 14px;
}

.status-ok {
    color: #28a745;
    font-weight: bold;
}

/* Automation Elements */
#notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    max-width: 300px;
    pointer-events: none;
}

#notification-container .notification {
    pointer-events: auto;
    margin-bottom: 10px;
    border-radius: 5px;
    font-size: 13px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    max-width: 280px;
}

#notification-container .notification.show {
    transform: translateX(0);
}

#status-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #2c3e50;
    color: white;
    padding: 8px 15px;
    font-size: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 999;
    border-top: 1px solid #34495e;
    font-family: 'Courier New', monospace;
}

#status-bar .status-left,
#status-bar .status-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

#background-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, #3498db, #2ecc71, #e74c3c);
    z-index: 1001;
    transition: width 0.3s ease;
}

/* Notification Types */
.notification.success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.notification.warning {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
}

.notification.info {
    background: #d1ecf1;
    border: 1px solid #bee5eb;
    color: #0c5460;
}

/* Animation for notifications */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.notification.slide-in {
    animation: slideIn 0.3s ease forwards;
}

.notification.slide-out {
    animation: slideOut 0.3s ease forwards;
}

/* Progress bar animation */
@keyframes progressPulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

#background-progress.active {
    animation: progressPulse 2s infinite;
}

/* Status bar animations */
#status-bar .status-left span,
#status-bar .status-right span {
    transition: color 0.3s ease;
}

#status-bar .status-left span:hover,
#status-bar .status-right span:hover {
    color: #3498db;
}

/* Responsive adjustments for automation */
@media (max-width: 480px) {
    #notification-container {
        max-width: 250px !important;
        right: 5px !important;
        top: 5px !important;
    }
    
    #status-bar {
        flex-direction: column;
        gap: 5px;
        padding: 5px 10px !important;
        font-size: 10px !important;
    }
    
    #status-bar .status-left,
    #status-bar .status-right {
        gap: 10px;
    }
} 