/* Root Variables and Theme Settings */
:root {
    --bg-gradient-light: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    --bg-gradient-dark: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
    --container-bg-light: white;
    --container-bg-dark: #1a202c;
    --text-primary-light: #2c3e50;
    --text-primary-dark: #e2e8f0;
    --text-secondary-light: #718096;
    --text-secondary-dark: #a0aec0;
    --border-color-light: #e2e8f0;
    --border-color-dark: #4a5568;
    --form-bg-light: #f8fafc;
    --form-bg-dark: #2d3748;
    --input-bg-light: white;
    --input-bg-dark: #1a202c;
    --button-gradient-light: linear-gradient(135deg, #4299e1 0%, #3182ce 100%);
    --button-gradient-dark: linear-gradient(135deg, #63b3ed 0%, #4299e1 100%);
}

[data-theme="dark"] {
    color-scheme: dark;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    background: var(--bg-gradient-light);
    min-height: 100vh;
    padding: 20px;
    transition: background-color 0.3s ease;
}

[data-theme="dark"] body {
    background: var(--bg-gradient-dark);
}

/* Theme Toggle Styles */
.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.theme-toggle-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.theme-toggle-btn:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .theme-toggle-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.sun-icon, .moon-icon {
    width: 24px;
    height: 24px;
    stroke-width: 2px;
    transition: transform 0.3s ease;
}

.sun-icon {
    stroke: #2d3748;
    display: block;
}

.moon-icon {
    stroke: #e2e8f0;
    display: none;
}

[data-theme="dark"] .sun-icon {
    display: none;
}

[data-theme="dark"] .moon-icon {
    display: block;
}

/* Container and Main Content Styles */
.container {
    max-width: 900px;
    margin: 0 auto;
    background: var(--container-bg-light);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

[data-theme="dark"] .container {
    background: var(--container-bg-dark);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

h1 {
    color: var(--text-primary-light);
    text-align: center;
    margin-bottom: 30px;
    font-size: 2.5em;
    font-weight: 700;
    transition: color 0.3s ease;
}

[data-theme="dark"] h1 {
    color: var(--text-primary-dark);
}

/* Form Styles */
.form-container {
    background: var(--form-bg-light);
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 30px;
    border: 1px solid var(--border-color-light);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

[data-theme="dark"] .form-container {
    background: var(--form-bg-dark);
    border-color: var(--border-color-dark);
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    color: var(--text-primary-light);
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 1.1em;
    transition: color 0.3s ease;
}

[data-theme="dark"] label {
    color: var(--text-primary-dark);
}

.input-wrapper {
    position: relative;
}

input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-color-light);
    border-radius: 8px;
    font-size: 1em;
    background: var(--input-bg-light);
    color: var(--text-primary-light);
    transition: all 0.3s ease;
}

[data-theme="dark"] input {
    background: var(--input-bg-dark);
    color: var(--text-primary-dark);
    border-color: var(--border-color-dark);
}

input:focus {
    outline: none;
    border-color: #4299e1;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.15);
}

[data-theme="dark"] input:focus {
    border-color: #63b3ed;
    box-shadow: 0 0 0 3px rgba(99, 179, 237, 0.15);
}

.help-text {
    font-size: 0.9em;
    color: var(--text-secondary-light);
    margin-top: 5px;
    transition: color 0.3s ease;
}

[data-theme="dark"] .help-text {
    color: var(--text-secondary-dark);
}
/* Button Styles */
button {
    background: var(--button-gradient-light);
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
    margin-top: 20px;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(66, 153, 225, 0.3);
}

/* Progress Bar Styles */
.progress-container {
    margin-top: 20px;
    display: none;
}

.progress-bar {
    height: 10px;
    background: var(--border-color-light);
    border-radius: 5px;
    overflow: hidden;
    margin-top: 10px;
}

[data-theme="dark"] .progress-bar {
    background: var(--border-color-dark);
}

.progress {
    width: 0%;
    height: 100%;
    background: var(--button-gradient-light);
    transition: width 0.3s ease;
}

/* Status Message Styles */
.status {
    margin-top: 15px;
    padding: 15px;
    border-radius: 8px;
    display: none;
    font-weight: 500;
}

.success {
    background-color: #c6f6d5;
    color: #276749;
    border: 1px solid #9ae6b4;
}

[data-theme="dark"] .success {
    background-color: rgba(198, 246, 213, 0.1);
    color: #9ae6b4;
    border-color: #276749;
}

.error {
    background-color: #fed7d7;
    color: #9b2c2c;
    border: 1px solid #feb2b2;
}

[data-theme="dark"] .error {
    background-color: rgba(254, 215, 215, 0.1);
    color: #feb2b2;
    border-color: #9b2c2c;
}

/* Installation Guide Styles */
.installation-guide {
    margin-top: 30px;
    background: var(--form-bg-light);
    padding: 25px;
    border-radius: 10px;
    border: 1px solid var(--border-color-light);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

[data-theme="dark"] .installation-guide {
    background: var(--form-bg-dark);
    border-color: var(--border-color-dark);
}

.guide-title {
    color: var(--text-primary-light);
    font-size: 1.5em;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color-light);
    transition: color 0.3s ease, border-color 0.3s ease;
}

[data-theme="dark"] .guide-title {
    color: var(--text-primary-dark);
    border-color: var(--border-color-dark);
}

.step {
    background: var(--container-bg-light);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    margin-bottom: 15px;
    border: 1px solid var(--border-color-light);
    position: relative;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

[data-theme="dark"] .step {
    background: var(--container-bg-dark);
    border-color: var(--border-color-dark);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Command Block Styles */
.command-block {
    background: #1a202c;
    color: #a0aec0;
    padding: 12px 15px;
    border-radius: 6px;
    margin: 10px 0;
    font-family: 'Monaco', 'Consolas', monospace;
    position: relative;
    overflow-x: auto;
}

[data-theme="dark"] .command-block {
    background: #000;
    color: #e2e8f0;
}

.copy-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: #2d3748;
    color: #a0aec0;
    border: 1px solid #4a5568;
    padding: 4px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s;
    width: auto;
    margin-top: 0;
}

.copy-btn:hover {
    background: #4a5568;
    color: white;
    transform: translateY(-50%);
    box-shadow: none;
}

/* Privacy Notice Styles */
.privacy-notice {
    background: #ebf8ff;
    border: 1px dashed #4299e1;
    padding: 12px 15px;
    border-radius: 8px;
    margin: 15px 0;
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    transition: background-color 0.3s ease;
    font-size: 0.9em;
}

[data-theme="dark"] .privacy-notice {
    background: rgba(66, 153, 225, 0.1);
}

.privacy-notice svg {
    flex-shrink: 0;
    width: 18px;  /* Reduced from 24px */
    height: 18px; /* Reduced from 24px */
    color: #4299e1;
    margin-top: 2px;
}

.privacy-notice-content {
    flex-grow: 1;
}

.privacy-notice h3 {
    color: #2b6cb0;
    margin: 0 0 6px 0;
    font-size: 1em;
}

.privacy-notice p {
    color: #2d3748;
    margin: 0;
    line-height: 1.4;
}

.security-features {
    margin-top: 8px;
    padding-left: 15px;
    color: #4a5568;
}

.security-features li {
    margin-bottom: 3px;
    font-size: 0.9em;
    line-height: 1.4;
}

[data-theme="dark"] .privacy-notice p,
[data-theme="dark"] .security-features {
    color: #e2e8f0;
}

/* Footer Styles */
.footer {
    margin-top: 40px;
    padding: 30px;
    background: #2d3748;
    color: #e2e8f0;
    border-radius: 8px;
    text-align: center;
    transition: background-color 0.3s ease;
}

[data-theme="dark"] .footer {
    background: #1a202c;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.footer p {
    margin: 0;
    line-height: 1.5;
}

.footer .designation {
    color: #90cdf4;
    font-style: italic;
}

.footer .institution {
    color: #a0aec0;
}

.linkedin-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #90cdf4;
    text-decoration: none;
    padding: 8px 16px;
    background: rgba(144, 205, 244, 0.1);
    border-radius: 20px;
    margin-top: 12px;
    transition: all 0.3s ease;
}

.linkedin-link:hover {
    background: rgba(144, 205, 244, 0.2);
    transform: translateY(-2px);
}

.linkedin-icon {
    width: 20px;
    height: 20px;
    color: #90cdf4;
}