/* AUXSCAN - USCG Auxiliary Website Checker Styles */

body {
    font-family: Arial, sans-serif;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f5f5f5;
}

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

h1 {
    color: #003366;
    text-align: center;
    margin-bottom: 30px;
}

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

.logo img {
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.cutter-image {
    max-width: 100%;
    height: auto;
    max-height: 300px;
}

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

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

input[type="text"], input[type="email"] {
    width: 100%;
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    box-sizing: border-box;
}

input[type="text"]:focus, input[type="email"]:focus {
    outline: none;
    border-color: #003366;
}

/* Validation states for unit input */
input.valid {
    border-color: #388e3c !important;
}

input.invalid {
    border-color: #d32f2f !important;
}

.format-hint {
    font-size: 14px;
    color: #666;
    margin-top: 5px;
}

.format-hint-small {
    font-size: 11px;
    color: #666;
    margin-top: 2px;
}

button {
    background-color: #003366;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    width: 100%;
    margin-top: 10px;
}

button:hover {
    background-color: #002244;
}

button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

.status {
    margin-top: 20px;
    padding: 15px;
    border-radius: 4px;
    display: none;
}

.status.info {
    background-color: #e3f2fd;
    color: #1976d2;
    border: 1px solid #1976d2;
}

.status.success {
    background-color: #e8f5e9;
    color: #388e3c;
    border: 1px solid #388e3c;
}

.status.error {
    background-color: #ffebee;
    color: #d32f2f;
    border: 1px solid #d32f2f;
}

.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #003366;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    vertical-align: middle;
    margin-right: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.progress-list {
    margin-top: 15px;
    font-size: 14px;
}

.progress-item {
    margin: 5px 0;
    padding-left: 20px;
}

.progress-item.completed::before {
    content: "✓ ";
    color: #388e3c;
    font-weight: bold;
}

.progress-item.in-progress::before {
    content: "→ ";
    color: #1976d2;
    font-weight: bold;
}

.progress-item.pending::before {
    content: "○ ";
    color: #999;
}

#downloadSection {
    display: none;
    margin-top: 20px;
    text-align: center;
}

#viewBtn {
    background-color: #388e3c;
    width: calc(50% - 5px);
    margin-right: 10px;
    display: inline-block;
    margin-top: 0;
    vertical-align: top;
}

#viewBtn:hover {
    background-color: #2e7d32;
}

#downloadBtn {
    background-color: #4CAF50;
    width: calc(50% - 5px);
    display: inline-block;
    margin-top: 0;
    vertical-align: top;
}

#downloadBtn:hover {
    background-color: #45a049;
}

#emailBtn {
    background-color: #1976d2;
    margin-top: 10px;
    display: block;
    width: 100%;
}

#emailBtn:hover {
    background-color: #1565c0;
}

.email-form {
    margin-top: 15px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 4px;
    border: 1px solid #dee2e6;
    display: none;
}

.email-form input[type="email"] {
    width: 100%;
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    box-sizing: border-box;
    margin-bottom: 10px;
}

.email-form input[type="email"]:focus {
    border-color: #1976d2;
    outline: none;
}

.email-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
    font-size: 14px;
}

#sendEmailBtn {
    background-color: #1976d2;
    margin-bottom: 10px;
}

#sendEmailBtn:hover {
    background-color: #1565c0;
}

#cancelEmailBtn {
    background-color: #6c757d;
    margin-bottom: 0;
}

#cancelEmailBtn:hover {
    background-color: #5a6268;
}

.progress-details {
    font-size: 12px;
    color: #666;
    margin-left: 20px;
    margin-top: 5px;
}

.elapsed-time {
    font-size: 12px;
    color: #666;
    margin-top: 10px;
    text-align: center;
}

.footer {
    text-align: center;
    margin-top: 30px;
    font-size: 14px;
    color: #666;
}

.footer a {
    color: #003366;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

.footer .separator {
    margin: 0 10px;
    color: #ccc;
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 0;
    border: 1px solid #888;
    width: 90%;
    max-width: 800px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    max-height: 80vh;
    display: flex;
    flex-direction: column;
}

.modal-header {
    padding: 20px;
    background-color: #003366;
    color: white;
    border-radius: 8px 8px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
}

.modal-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

.close {
    color: white;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 20px;
}

.close:hover {
    color: #ccc;
}

/* Markdown styles for release notes */
.release-notes h2 {
    color: #003366;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 10px;
    margin-top: 30px;
    margin-bottom: 20px;
}

.release-notes h3 {
    color: #1976d2;
    margin-top: 25px;
    margin-bottom: 15px;
}

.release-notes ul {
    line-height: 1.8;
    margin-bottom: 15px;
}

.release-notes li {
    margin-bottom: 8px;
}

.release-notes code {
    background-color: #f5f5f5;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
}

.release-notes strong {
    color: #333;
}

.loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

.version-info {
    font-size: 12px;
    color: #999;
    margin-right: 15px;
}

/* Environment indicators */
.version-info.env-development {
    background-color: #FF0000;
    color: black;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: bold;
    display: inline-block;
}

.version-info.env-staging {
    background-color: #FFFF00;
    color: black;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: bold;
    display: inline-block;
}

/* Environment-based borders for the homepage */
body.env-development {
    border: 4px solid #FF0000;
    box-sizing: border-box;
}

body.env-staging {
    border: 4px solid #FFFF00;
    box-sizing: border-box;
}

/* Bravo Zulu styles */
.bravo-zulu {
    color: #003366;
    font-size: 64px;
    font-weight: bold;
    text-align: center;
    margin: 20px 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

/* Mobile responsiveness */
@media (max-width: 600px) {
    body {
        padding: 10px;
    }
    
    .container {
        padding: 20px;
    }
    
    button {
        width: 100%;
        margin-bottom: 10px;
    }
    
    #downloadBtn {
        padding: 10px 20px;
    }
    
    .email-form {
        width: 90%;
        min-width: unset;
    }
}

/* Feedback Modal Styles */
#feedbackModal .modal-content {
    max-width: 500px;
}

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

#feedbackForm label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

#feedbackForm input[type="text"],
#feedbackForm input[type="email"],
#feedbackForm textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    box-sizing: border-box;
}

#feedbackForm input:focus,
#feedbackForm textarea:focus {
    outline: none;
    border-color: #1976d2;
    box-shadow: 0 0 0 2px rgba(25, 118, 210, 0.1);
}

#feedbackForm textarea {
    resize: vertical;
    min-height: 100px;
    overflow-y: auto;
}

.char-count {
    text-align: right;
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}

.form-actions {
    margin-top: 20px;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.form-actions button {
    padding: 10px 20px;
}

#cancelFeedbackBtn {
    background-color: #666;
}

#cancelFeedbackBtn:hover {
    background-color: #555;
}

.feedback-status {
    margin-top: 20px;
    padding: 15px;
    border-radius: 4px;
    text-align: center;
}

.feedback-status.success {
    background-color: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #2e7d32;
}

.feedback-status.error {
    background-color: #ffebee;
    color: #c62828;
    border: 1px solid #c62828;
}