/* Main styles for JustNumbers Cloud */

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

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: #ffffff;
    color: #333;
    /* Margin for the security bar */
    margin-top: 60px;
}

/* Animation styles for form elements */
.animated-text-wrapper {
    transition: opacity 0.5s ease-in-out;
}

/* Handle div wrappers with contents display */
div.animated-text-wrapper {
    display: contents;
    width: 100%;
}

.logo-wrapper {
    transition: opacity 0.5s ease-in-out;
    display: inline-block;
}

/* Remove initial hidden state for animated elements - this will be handled by JS */
/* .logo img {
    opacity: 0;
} */

/* Remove initial hidden state - this will be handled by JS */
/* .content-to-animate {
    opacity: 0;
} */

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

/* Header */
header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid #ffffff;
    margin-bottom: 30px;
}

.logo img {
    height: 300px;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #ff0000;
}

/* Welcome section */
.welcome-section {
    text-align: center;
    padding: 10px 0;
}

.welcome-section h1 {
    font-size: 2.5rem;
    margin-bottom: 30px;
}

.welcome-section h2 {
    font-size: 1.6rem;
    margin-bottom: -20px;
}

.welcome-section p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 40px;
}

/* Login form styling */
.login-form {
    max-width: 500px;
    margin: 0 auto;
    padding: 30px;
    background-color: white;
    /*border-radius: 8px;*/
    /*box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);*/
}

.login-input {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1.2em;
    margin-bottom: 15px;
}

.login-button {
    width: 100%;
    padding: 15px;
    font-size: 1.2em;
    margin-top: -15px;
}

/* Authentication UI components */
.alert {
    padding: 10px 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    font-weight: bold;
}

.alert-danger {
    background-color: rgba(255, 0, 0, 0.1);
    border: 1px solid rgba(255, 0, 0, 0.3);
    color: #d00;
}

.alert-success {
    background-color: rgba(0, 255, 0, 0.1);
    border: 1px solid rgba(0, 255, 0, 0.3);
    color: #0d0;
}

.session-timer {
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    padding: 5px;
    background-color: #f9f9f9;
    border-radius: 4px;
    display: inline-block;
}

.session-timer.warning {
    color: #d00;
    background-color: rgba(255, 0, 0, 0.1);
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

/* Outline button variant */
.outline-button {
    background-color: transparent;
    border: 1px solid #000000;
    color: #000000;
}

.outline-button:hover {
    background-color: #000000;
    color: white;
}

/* Registration specific styles */
.account-created {
    background-color: #f8f8f8;
    padding: 25px;
    border-radius: 8px;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.account-info {
    margin-top: 20px;
}

.account-number {
    font-family: 'Courier New', monospace;
    font-size: 1.4em;
    font-weight: bold;
    margin: 10px 0;
    padding: 10px;
    background-color: #ebebeb;
    border-radius: 4px;
}

.backup-codes {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 15px 0;
}

.backup-code {
    font-family: 'Courier New', monospace;
    margin: 5px;
    padding: 8px;
    background-color: #ebebeb;
    border-radius: 4px;
    font-size: 0.9em;
    word-break: keep-all;
    white-space: nowrap;
    width: 100%;
    text-align: center;
}

.qr-code-container {
    margin: 20px auto;
    max-width: 200px;
}

.qr-fallback {
    border: 2px dashed #ccc;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    background-color: #f9f9f9;
    width: 200px;
    height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.qr-fallback p {
    margin: 5px 0;
}

.qr-fallback p:first-child {
    color: #d00;
    font-weight: bold;
}

.text-muted {
    color: #666;
    font-size: 0.85em;
    display: block;
    margin-top: 5px;
}

/* Password strength meter */
.password-strength {
    margin: 10px 0 20px 0;
}

.strength-meter {
    height: 5px;
    border-radius: 2px;
    background-color: #ddd;
}

.strength-meter.strength-0 {
    background-color: #ddd;
    width: 0%;
}

.strength-meter.strength-1 {
    background-color: #f00;
    width: 25%;
}

.strength-meter.strength-2 {
    background-color: #ff8800;
    width: 50%;
}

.strength-meter.strength-3 {
    background-color: #88cc00;
    width: 75%;
}

.strength-meter.strength-4 {
    background-color: #00cc00;
    width: 100%;
}

.strength-text {
    font-size: 0.85em;
    margin-top: 5px;
    text-align: right;
}

/* Features */
.features {
    display: flex;
    justify-content: space-around;
    margin: 50px 0;
}

.feature {
    flex: 1;
    padding: 20px;
    margin: 0 15px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.feature h3 {
    margin-bottom: 10px;
    color: #ff0000;
}

/* Buttons */
.button {
    display: inline-block;
    background-color: #000000;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.button:hover {
    background-color: #cc0000;
}

.cta {
    margin-top: 30px;
}

/* Files section */
.files-section {
    padding: 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.files-section h1 {
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.files-table {
    width: 100%;
    border-collapse: collapse;
}

.files-table th,
.files-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.files-table th {
    background-color: #ffffff;
    font-weight: bold;
}

.action-button {
    display: inline-block;
    padding: 5px 10px;
    margin-right: 5px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.9em;
}

.action-button.download {
    background-color: #ff0000;
    color: white;
}

.action-button.delete {
    background-color: #ff8800;
    color: white;
}

.empty-state {
    text-align: center;
    padding: 40px 0;
}

.empty-state p {
    margin-bottom: 20px;
    color: #666;
}

/* Upload section */
.upload-section {
    padding: 30px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.upload-section h1 {
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.upload-form {
    margin-bottom: 30px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

.custom-file-upload {
    display: inline-block;
    padding: 15px 30px;  /* Increased padding for larger button */
    cursor: pointer;
    background-color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    font-size: 1.1em;  /* Increased font size */
}

.custom-file-upload:hover {
    background-color: #eee;
}

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

/* General input field styling */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
textarea {
    width: 100%;
    padding: 15px;  /* Increased padding */
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1.1em;  /* Increased font size */
    margin-bottom: 10px;
}

.selected-file-name {
    display: inline-block;
    margin-left: 10px;
    color: #666;
    font-size: 1.1em;  /* Increased font size */
}

select {
    width: 100%;
    padding: 15px;  /* Increased padding from 10px to 15px */
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1.1em;  /* Increased font size */
    height: auto;  /* Allow height to adjust to content */
}

.upload-button {
    width: 100%;
    padding: 18px;  /* Increased padding for larger button */
    font-size: 1.2em;  /* Increased font size */
}

.upload-info {
    background-color: #ffffff;
    border-radius: 4px;
    padding: 15px;
}

.upload-info h3 {
    margin-bottom: 10px;
    color: #00a2ff;
}

.upload-info ul {
    list-style-position: inside;
    color: #666;
}

/* Footer */
footer {
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    text-align: center;
    color: #666;
}

/* Footer links */
footer a {
    text-decoration: none;
    color: #333;
}

footer a:hover {
    color: #333;
}

/* QR code scanner styles */
.account-input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.qr-button {
    position: absolute;
    top: 0px;
    right: 0px;
    bottom: 10px;
    font-size: 0.9em;
    background-color: #333333;
}

.qr-button:hover {
    background-color: #555555;
}

/* QR Scanner Modal */
.qr-scanner-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.qr-scanner-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 500px;
    position: relative;
}

.qr-scanner-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.qr-scanner-header h3 {
    margin: 0;
    font-size: 1.2em;
}

.close-button {
    background: none;
    border: none;
    font-size: 1.5em;
    cursor: pointer;
    color: #333;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-button:hover {
    color: #000;
}

.qr-reader-container {
    width: 100%;
    background-color: #f5f5f5;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 15px;
    min-height: 300px;
}

.scanning-status {
    text-align: center;
    color: #333;
    padding: 10px;
    background-color: #f5f5f5;
    border-radius: 4px;
    margin-top: 10px;
    font-size: 0.9em;
}

/* HTML5 QR Code library override styles */
#qr-reader {
    border: none !important;
}

#qr-reader video {
    border-radius: 4px;
}

#qr-reader__dashboard {
    margin: 10px 0;
}

#qr-reader__scan_region {
    margin-bottom: 10px;
}

#qr-reader__scan_region img {
    display: block;
    width: 100%;
}

/* Remove some library styles we don't need */
#qr-reader__dashboard_section_swaplink {
    display: none !important;
}

@media (max-width: 768px) {
    .qr-button {
        position: static;
        width: 100%;
        margin-top: -5px;
        margin-bottom: 15px;
        height: auto;
    }
    
    .account-input-group {
        flex-direction: column;
    }
    
    .qr-scanner-content {
        padding: 15px;
    }
    
    .qr-reader-container {
        min-height: 250px;
    }
}

/* Payment options styling */
.payment-options {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 500px;
    margin: 30px auto;
}

.payment-option {
    margin-bottom: 10px;
    text-align: center;
}

.payment-button {
    width: 100%;
    padding: 25px;
    font-size: 1.4em;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.payment-button i {
    margin-right: 10px;
    font-size: 1.2em;
}

.payment-description {
    color: #666;
    font-size: 0.9em;
}

/* Credit card form styles */
.credit-card-form {
    max-width: 500px;
    margin: 20px auto;
}

.card-number-input,
.card-expiry-input,
.card-cvv-input,
.card-name-input {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1.2em;
    margin-bottom: 15px;
}

.card-row {
    display: flex;
    gap: 15px;
}

.card-column {
    flex: 1;
}

/* Prepaid code input styles */
.prepaid-code-input {
    letter-spacing: 2px;
    font-family: 'Courier New', monospace;
    text-align: center;
}

/* Card error message */
.card-error {
    color: #d00;
    font-weight: bold;
    margin: 15px 0;
    padding: 10px;
    background-color: rgba(255, 0, 0, 0.1);
    border-radius: 4px;
    text-align: center;
} 