:root {
    /* Colors */
    --primary: #FF69B4;
    --primary-dark: #FF1493;
    --secondary: #4B0082;
    --text-primary: #333333;
    --text-secondary: #666666;
    --background: #FFFFFF;
    --error: #FF0000;
    --success: #4CAF50;
    
    /* Typography */
    --font-family: 'Arial', sans-serif;
    --font-size-small: 14px;
    --font-size-medium: 16px;
    --font-size-large: 24px;
    
    /* Spacing */
    --spacing-small: 8px;
    --spacing-medium: 16px;
    --spacing-large: 24px;
    
    /* Border Radius */
    --border-radius: 5px;
    
    /* Transitions */
    --transition-speed: 0.3s;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--background);
}

/* Header Styles */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-medium);
    background-color: var(--background);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--secondary);
}

.nav {
    display: flex;
    gap: var(--spacing-medium);
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-size: var(--font-size-small);
    transition: color var(--transition-speed);
}

.nav-link:hover {
    color: var(--primary);
}

/* Container & Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--spacing-large);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 80px);
}

/* Login Box */
.login-box {
    background: var(--background);
    padding: var(--spacing-large);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 400px;
}

.title {
    font-size: var(--font-size-large);
    color: var(--secondary);
    margin-bottom: var(--spacing-medium);
    position: relative;
}

.title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
}

.subtitle {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-large);
}

/* Form Styles */
.form-group {
    margin: 20px 0;
    text-align: center;
}

label {
    display: block;
    margin-bottom: var(--spacing-small);
    color: var(--text-secondary);
}

input {
    width: 100%;
    padding: var(--spacing-medium);
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-size: var(--font-size-medium);
    transition: border-color var(--transition-speed);
}

input:focus {
    outline: none;
    border-color: var(--primary);
}

.pin-input {
    padding: 8px 12px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 100px;
    text-align: center;
    margin: 0 10px;
}

.form-hint {
    display: block;
    color: #666;
    margin-top: 5px;
    font-size: 0.9em;
}

.submit-button {
    background-color: var(--primary);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 10px;
}

.submit-button:hover {
    background-color: var(--primary-dark);
}

/* Button Styles */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-medium) var(--spacing-large);
    border: none;
    border-radius: var(--border-radius);
    font-size: var(--font-size-medium);
    font-weight: bold;
    cursor: pointer;
    transition: background-color var(--transition-speed);
    width: 100%;
}

.button-primary {
    background: linear-gradient(to right, var(--primary), var(--primary-dark));
    color: white;
}

.button-primary:hover {
    background: linear-gradient(to right, var(--primary-dark), var(--primary));
}

.button-icon {
    margin-left: var(--spacing-small);
}

/* Progress Bar Styles */
.progress-bar {
    background-color: #f0f0f0;
    border-radius: var(--border-radius);
    overflow: hidden;
    margin: var(--spacing-medium) 0;
}

.progress-bar-fill {
    height: 20px;
    background: linear-gradient(to right, var(--primary), var(--primary-dark));
    transition: width var(--transition-speed);
}

/* Messages */
.error-message {
    color: var(--error);
    margin-top: var(--spacing-small);
}

.success-message {
    color: var(--success);
    margin-top: var(--spacing-small);
}

.forgot-password {
    text-align: right;
}

.forgot-password a {
    color: var(--primary);
    text-decoration: none;
    font-size: var(--font-size-small);
}

.forgot-password a:hover {
    text-decoration: underline;
}

/* Add these new styles */
.upload-container {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 600px;
    position: relative;
}

.upload-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.upload-title {
    font-size: 24px;
    font-weight: bold;
    color: var(--text-primary);
}

.close-button {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
}

.upload-area {
    border: 2px dashed #ccc;
    border-radius: 15px;
    padding: 3rem 2rem;
    text-align: center;
    background: #f9f9f9;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}

.upload-area:hover {
    border-color: var(--primary);
    background: #f0f0f0;
}

.upload-icon {
    font-size: 48px;
    color: var(--primary);
    margin-bottom: 1rem;
}

.upload-text {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.browse-button {
    color: var(--primary);
    text-decoration: underline;
    cursor: pointer;
}

.file-info {
    font-size: var(--font-size-small);
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

.upload-progress {
    margin-top: 1rem;
}

.upload-progress-item {
    display: flex;
    align-items: center;
    padding: 0.5rem;
    border-radius: var(--border-radius);
    background: #f5f5f5;
    margin-bottom: 0.5rem;
}

.file-name {
    flex: 1;
    margin-right: 1rem;
}

.progress-bar {
    height: 4px;
    border-radius: 2px;
}

.progress-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status-icon {
    width: 16px;
    height: 16px;
}

/* Update existing progress bar styles */
.progress-container {
    margin-top: 2rem;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

/* Add these styles */
.download-content {
    text-align: center;
    padding: 2rem;
}

.button-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.button-row {
    display: flex;
    justify-content: center;
}

.button {
    width: 300x; /* Or your preferred width */
}

.download-button {
    background: linear-gradient(to right, var(--primary), var(--primary-dark));
    color: white;
    font-weight: bold;
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.download-button:hover {
    background: linear-gradient(to right, var(--primary-dark), var(--primary));
    transform: scale(1.15);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.delete-button {
    background: #f5f5f5;
    color: var(--error);
    border: 1px solid var(--error);
}

.delete-button:hover {
    background: var(--error);
    color: white;
}

/* Add transition for smooth hover effects */
.button {
    transition: all var(--transition-speed) ease;
}

.success {
    text-align: center;
    color: #28a745;
    margin-bottom: 30px;
    font-size: 2.5rem;
    font-weight: bold;
}

/* Pincode Management Styles */
.pincode-container {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 1000px;
}

.pincode-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: white;
    margin: 15% auto;
    padding: 20px;
    border-radius: 5px;
    width: 80%;
    max-width: 500px;
}

.close {
    float: right;
    cursor: pointer;
    font-size: 28px;
}

.button-small {
    padding: 5px 10px;
    margin: 0 5px;
    border-radius: 3px;
    cursor: pointer;
}

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

.delete-btn {
    background: var(--error);
    color: white;
    border: none;
}

/* Add new styles for the add button */
.add-pincode-btn {
    padding: 8px 15px;
    font-size: 14px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.add-pincode-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.process-info {
    margin-bottom: 1rem;
    color: var(--text-secondary);
    font-size: 0.9em;
} 