/* FairVerify CryptShare - Main CSS */

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Header */
header {
    text-align: center;
    margin-bottom: 2rem;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.subtitle {
    font-size: 1.1rem;
    opacity: 0.8;
    margin-bottom: 0;
}

/* Main content */
main {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Messages */
.message {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border-left: 4px solid;
}

.message.error {
    background-color: #fee;
    border-color: #e53e3e;
    color: #c53030;
}

.message.success {
    background-color: #f0fff4;
    border-color: #38a169;
    color: #2f855a;
}

.message h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

/* Form elements */
.form-container {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.form-container h2 {
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.field-group {
    margin-bottom: 1.5rem;
}

.field-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

input[type="text"],
input[type="password"],
textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

input[type="text"]:focus,
input[type="password"]:focus,
textarea:focus {
    outline: none;
    border-color: #4299e1;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);
}

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    min-width: 140px;
}

.btn-primary {
    background: linear-gradient(135deg, #4299e1, #3182ce);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #3182ce, #2c5282);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(66, 153, 225, 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: inherit;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Result and info boxes */
.result-box,
.message-box,
.info-box,
.warning-box {
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1rem 0;
}

.result-box {
    background: rgba(56, 161, 105, 0.1);
    border: 1px solid rgba(56, 161, 105, 0.3);
}

.message-box {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.info-box {
    background: rgba(66, 153, 225, 0.1);
    border: 1px solid rgba(66, 153, 225, 0.3);
}

.warning-box {
    background: rgba(237, 137, 54, 0.1);
    border: 1px solid rgba(237, 137, 54, 0.3);
    text-align: center;
    font-weight: 600;
}

.info-box h4 {
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.info-box ul {
    list-style: none;
    padding-left: 0;
}

.info-box li {
    padding: 0.25rem 0;
    position: relative;
    padding-left: 1.5rem;
}

.info-box li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #4299e1;
    font-weight: bold;
}

.privacy-info {
    margin-top: 1rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    border-left: 3px solid #4299e1;
    font-size: 0.9rem;
}

/* Copy fields */
.copy-field {
    font-family: 'Courier New', monospace;
    background: rgba(0, 0, 0, 0.2) !important;
    cursor: pointer;
}

.share-text {
    min-height: 200px;
    font-family: inherit;
}

/* Decrypted message */
.decrypted-message {
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    font-family: 'Courier New', monospace;
    white-space: pre-wrap;
    word-break: break-word;
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: left;
    line-height: 1.4;
}

/* Home page */
.home-container {
    text-align: center;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.feature-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    margin-bottom: 0.75rem;
    font-size: 1.3rem;
}

.feature-card p {
    opacity: 0.8;
    line-height: 1.5;
}

.cta-box {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 2rem;
}

.cta-box h2 {
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.cta-box p {
    opacity: 0.8;
    font-size: 1.1rem;
}

/* Footer */
footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
}

.footer-main {
    opacity: 0.8;
}

.footer-main p {
    margin: 0.25rem 0;
}

.company-info {
    font-size: 0.9rem;
    opacity: 0.7;
}

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    opacity: 0.8;
}

.footer-links a {
    color: inherit;
    text-decoration: none;
    padding: 0.5rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.1);
}

.separator {
    opacity: 0.5;
}

.privacy-notice {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
}

.privacy-notice h4 {
    margin-bottom: 0.75rem;
    font-size: 1rem;
    text-align: center;
}

.privacy-notice p {
    font-size: 0.9rem;
    line-height: 1.5;
    opacity: 0.8;
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    .form-container {
        padding: 1.5rem;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
    
    .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .separator {
        display: none;
    }
    
    .privacy-notice {
        padding: 1rem;
        text-align: center;
    }
    
    .privacy-notice p {
        text-align: left;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-container,
.message,
.feature-card {
    animation: fadeIn 0.6s ease-out;
}

/* Glassmorphism effect */
.form-container,
.feature-card,
.cta-box {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}