:root {
    --primary-color: #6c5ce7;
    --primary-light: #a29bfe;
    --secondary-color: #00cec9;
    --accent-color: #fd79a8;
    --dark-color: #2d3436;
    --light-color: #dfe6e9;
    --success-color: #00b894;
    --warning-color: #fdcb6e;
    --danger-color: #d63031;
    --text-color: #2d3436;
    --bg-color: #f9f9f9;
    --card-bg: #ffffff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header Styles */
header {
    text-align: center;
    margin-bottom: 2rem;
    animation: fadeInDown 0.8s ease;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
}

.logo i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-right: 0.5rem;
    animation: pulse 2s infinite;
}

.logo h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 1px;
}

.tagline {
    font-size: 1.1rem;
    color: var(--dark-color);
    opacity: 0.8;
}

/* Language Switcher */
.language-switcher {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}

.lang-btn {
    background-color: var(--light-color);
    color: var(--dark-color);
    border: none;
    border-radius: 4px;
    padding: 5px 10px;
    margin: 0 5px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.lang-btn:hover {
    background-color: var(--primary-light);
    color: white;
}

.lang-btn.active {
    background-color: var(--primary-color);
    color: white;
}

/* Main Content */
main {
    flex: 1;
    background-color: var(--card-bg);
    border-radius: 10px;
    box-shadow: var(--shadow);
    overflow: hidden;
    animation: fadeIn 1s ease;
}

/* Tabs */
.tabs {
    display: flex;
    background-color: var(--light-color);
}

.tab-btn {
    flex: 1;
    padding: 1rem;
    background: none;
    border: none;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark-color);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.tab-link-btn {
    flex: 1;
    padding: 1rem;
    background: none;
    border: none;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark-color);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    text-align: center;
    text-decoration: none;
}

.tab-btn:hover,
.tab-link-btn:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.tab-btn.active {
    color: var(--primary-color);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    animation: slideInLeft 0.3s ease;
}

.tab-content {
    padding: 2rem;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.form-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--dark-color);
}

input, textarea, select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(108, 92, 231, 0.2);
}

textarea {
    min-height: 150px;
    resize: vertical;
}

.password-generate-btn {
    width: fit-content;
    max-width: 92%;
    min-width: 132px;
    margin-top: 0.55rem;
    padding: 0.52rem 0.82rem;
    border-color: var(--primary-color);
    background-color: var(--primary-color);
    color: #fff;
    font-size: 0.82rem;
    line-height: 1;
    white-space: nowrap;
    box-shadow: 0 4px 10px rgba(108, 92, 231, 0.18);
}

.password-generate-btn:hover {
    background-color: var(--primary-light);
    border-color: var(--primary-light);
    color: #fff;
}

/* File Upload */
.file-upload {
    position: relative;
    margin-bottom: 1rem;
}

.file-upload input[type="file"] {
    position: absolute;
    width: 0.1px;
    height: 0.1px;
    opacity: 0;
    overflow: hidden;
    z-index: -1;
}

.file-label {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem;
    background-color: var(--light-color);
    color: var(--dark-color);
    border-radius: 5px;
    cursor: pointer;
    transition: var(--transition);
}

.file-label:hover {
    background-color: var(--primary-light);
    color: white;
}

.file-label i {
    margin-right: 0.5rem;
    font-size: 1.2rem;
}

.image-preview {
    margin-top: 10px;
    max-width: 100%;
    border-radius: 5px;
    overflow: hidden;
    position: relative;
    display: inline-block;
    background-color: var(--light-color);
}

.image-preview.has-image {
    display: inline-block;
    position: relative;
    background-color: transparent;
}

.image-preview img {
    max-width: 100%;
    display: block;
}

.image-preview-marker, .image-marker {
    position: absolute;
    width: 12px;
    height: 12px;
    margin-left: -6px;
    margin-top: -6px;
    border-radius: 50%;
    background-color: rgba(255, 0, 0, 0.7);
    border: 1px solid white;
    box-shadow: 0 0 3px rgba(0, 0, 0, 0.5);
    pointer-events: none;
    z-index: 10;
    animation: pulse 1.5s infinite;
}

.image-marker {
    width: 20px;
    height: 20px;
    margin-left: -10px;
    margin-top: -10px;
    background-color: rgba(255, 0, 0, 0.7);
    border: 2px solid white;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    70% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn i {
    margin-right: 0.5rem;
}

.primary-btn {
    background-color: var(--primary-color);
    color: white;
}

.primary-btn:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.secondary-btn {
    background-color: var(--secondary-color);
    color: white;
}

.secondary-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.outline-btn {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.outline-btn:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Result Container */
.result-container {
    text-align: center;
    padding: 2rem;
    animation: fadeIn 0.5s ease;
}

.link-container {
    display: flex;
    margin: 1rem 0;
}

.link-container input {
    flex: 1;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    font-size: 0.9rem;
}

.link-container button {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.qr-share-card {
    width: min(100%, 320px);
    margin: 1.25rem auto 0;
    padding: 1rem;
    border: 1px solid rgba(108, 92, 231, 0.18);
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(108, 92, 231, 0.07), rgba(255, 255, 255, 0)),
        #ffffff;
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.08);
}

.qr-code-frame {
    width: 212px;
    height: 212px;
    margin: 0 auto;
    padding: 8px;
    border-radius: 8px;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.qr-code-frame canvas {
    display: block;
    width: 196px;
    height: 196px;
}

.qr-share-text {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    margin-top: 0.85rem;
}

.qr-label {
    color: var(--dark-color);
    font-weight: 600;
    font-size: 0.95rem;
}

.qr-hint {
    color: var(--secondary-color);
    font-size: 0.82rem;
}

.qr-download-btn {
    margin-top: 0.85rem;
    padding: 0.55rem 0.9rem;
}

.warning {
    margin: 1rem 0;
    color: var(--danger-color);
    font-size: 0.9rem;
}

.warning i {
    margin-right: 0.3rem;
}

/* Note Content */
.note-content {
    animation: fadeIn 0.5s ease;
}

.note-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--light-color);
}

/* Expiration badge */
.expiration-badge {
    background-color: var(--warning-color);
    color: var(--dark-color);
    padding: 0.3rem 0.6rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-left: 10px;
}

.note-body {
    margin-bottom: 2rem;
}

#displayed-note-text {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.note-image {
    margin-top: 1rem;
    max-width: 100%;
    text-align: center;
}

.note-image img {
    max-width: 100%;
    border-radius: 5px;
    box-shadow: var(--shadow);
}

.note-footer {
    text-align: center;
    margin-top: 2rem;
}

/* Modal */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px);
    z-index: 100;
    display: none;
    animation: fadeIn 0.3s ease;
}

.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background-color: var(--card-bg);
    border-radius: 10px;
    box-shadow: var(--shadow);
    padding: 2rem;
    z-index: 101;
    max-width: 400px;
    width: 90%;
    display: none;
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.modal.active {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.modal h3 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.modal p {
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.modal-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

/* Utility Classes */
.hidden {
    display: none;
}

/* Footer */
footer {
    text-align: center;
    margin-top: 2rem;
    color: var(--dark-color);
    opacity: 0.7;
    font-size: 0.9rem;
}

.network-switch {
    display: flex;
    justify-content: center;
    margin: 0.85rem 0 0.6rem;
}

.network-switch a {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem 0.8rem;
    border: 1px solid rgba(108, 92, 231, 0.22);
    border-radius: 8px;
    background: rgba(108, 92, 231, 0.06);
    color: var(--primary-color);
    font-size: 0.86rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.network-switch a:hover {
    background: rgba(108, 92, 231, 0.12);
    border-color: rgba(108, 92, 231, 0.42);
    transform: translateY(-1px);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    .tab-content {
        padding: 1.5rem;
    }
    
    .form-row {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .logo h1 {
        font-size: 2rem;
    }
    
    .tagline {
        font-size: 1rem;
    }
}

/* Стили для опций координат */
.coordinates-options {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
    margin-top: 15px;
}

.form-check {
    margin-bottom: 10px;
}

.form-check-input {
    margin-right: 8px;
}

.image-expiration-options {
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid #ddd;
}

.image-expiration-options label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.image-expiration-options select {
    width: 100%;
    padding: 8px;
    border-radius: 4px;
    border: 1px solid #ddd;
    background-color: white;
}

.mt-2 {
    margin-top: 8px;
}

.mt-3 {
    margin-top: 15px;
}

/* Стили для водяного знака с координатами */
.watermark-container {
    position: relative;
    display: inline-block;
}

.coordinates-watermark {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 12px;
    font-family: monospace;
}

/* Стили для индикатора шифрования */
.encryption-badge {
    display: inline-block;
    background-color: #4a8fe7;
    color: white;
    font-size: 0.7rem;
    padding: 2px 5px;
    border-radius: 4px;
    margin-left: 5px;
    vertical-align: middle;
    font-weight: bold;
}

.encryption-info {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    color: #4a8fe7;
    background-color: rgba(74, 143, 231, 0.1);
    padding: 10px;
    border-radius: 6px;
    font-size: 14px;
}

.encryption-info i {
    margin-right: 8px;
    font-size: 16px;
}

/* View counter */
.view-counter {
    background-color: var(--info-color);
    color: var(--dark-color);
    padding: 0.3rem 0.6rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-left: 10px;
}

.file-formats-hint {
    font-size: 13px;
    color: #777;
    margin-bottom: 10px;
    margin-top: 2px;
} 
