/* AutoMktr Styles */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

/* Links */
a {
    color: #ff6b35;
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #f94144;
    text-decoration: underline;
}

.edit-link:hover {
    color: #ff8c5a;
}

.delete-link {
    color: #e74c3c;
}

.delete-link:hover {
    color: #c0392b;
}

/* Login Page */
.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #ff6b35 0%, #c41e3a 100%);
}

.login-container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
}

.login-box {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.login-box h1 {
    text-align: center;
    color: #ff6b35;
    margin-bottom: 10px;
    font-size: 32px;
}

.subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
    font-size: 14px;
}

/* Dashboard Layout */
.dashboard-container {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 250px;
    background: linear-gradient(180deg, #2c3e50 0%, #1a252f 100%);
    color: white;
    padding: 20px;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

.sidebar h2 {
    margin-bottom: 30px;
    color: #ff6b35;
    font-size: 28px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.sidebar nav {
    display: flex;
    flex-direction: column;
}

.sidebar nav a {
    color: #ecf0f1;
    text-decoration: none;
    padding: 14px 18px;
    margin-bottom: 8px;
    border-radius: 12px;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 16px;
}

.sidebar nav a:hover {
    background: linear-gradient(135deg, #ff6b35 0%, #ff8c5a 100%);
    transform: translateX(5px);
    box-shadow: 0 4px 8px rgba(255, 107, 53, 0.3);
    color: white;
}

.sidebar nav a.active {
    background: linear-gradient(135deg, #ff6b35 0%, #f94144 100%);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.4);
}

.main-content {
    flex: 1;
    padding: 40px;
    overflow-x: auto;
}

.main-content h1 {
    margin-bottom: 20px;
    color: #ff6b35;
    font-weight: bold;
}

.main-content h2 {
    margin: 30px 0 20px 0;
    color: #f94144;
    font-weight: 600;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #555;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #ff6b35;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.task-form {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    border: 2px solid #fff5f3;
}

/* Buttons */
.btn {
    padding: 14px 28px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-primary {
    background: linear-gradient(135deg, #ff6b35 0%, #f94144 100%);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #ff8c5a 0%, #ff6b6b 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(255, 107, 53, 0.3);
}

.btn-secondary {
    background: linear-gradient(135deg, #95a5a6 0%, #7f8c8d 100%);
    color: white;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #7f8c8d 0%, #6c7a7b 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(127, 140, 141, 0.3);
}

.btn-large {
    padding: 18px 45px;
    font-size: 20px;
    width: 100%;
    margin-top: 20px;
    border-radius: 15px;
}

.btn-small {
    padding: 8px 16px;
    font-size: 13px;
    border-radius: 8px;
}

.btn-danger {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #ff6b6b 0%, #e74c3c 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(231, 76, 60, 0.3);
}

.btn-success {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    color: white;
}

.btn-success:hover {
    background: linear-gradient(135deg, #54e68a 0%, #2ecc71 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(46, 204, 113, 0.3);
}

/* Tables */
.table-container {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.task-table {
    width: 100%;
    border-collapse: collapse;
}

.task-table thead {
    background: linear-gradient(135deg, #ff6b35 0%, #f94144 100%);
    color: white;
}

.task-table th,
.task-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ecf0f1;
}

.task-table tbody tr:hover {
    background: #f8f9fa;
}

.task-table tbody tr.flash-done {
    animation: flashGreen 1s ease-in-out;
}

@keyframes flashGreen {
    0%, 100% { background: transparent; }
    50% { background: #2ecc71; color: white; }
}

.loading,
.no-data {
    text-align: center;
    color: #999;
    font-style: italic;
}

/* Messages */
.error-message,
.success-message {
    padding: 15px 20px;
    border-radius: 12px;
    margin: 15px 0;
    display: none;
    font-weight: 600;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.error-message {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
}

.success-message {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    color: white;
}

/* Status Badges */
.status-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-active {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    color: white;
    box-shadow: 0 2px 4px rgba(46, 204, 113, 0.3);
}

.status-inactive {
    background: #95a5a6;
    color: white;
}

/* Task Page (User) */
.task-page,
.thankyou-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #ff6b35 0%, #c41e3a 100%);
}

.task-page-simple {
    min-height: 100vh;
    background: #f5f5f5;
    padding: 0;
}

.task-wrapper {
    padding: 20px;
    max-width: 100%;
}

.task-wrapper h1 {
    font-size: 24px;
    color: #2c3e50;
    margin-bottom: 30px;
}

.task-container,
.thankyou-container {
    width: 100%;
    max-width: 1200px;
    padding: 40px 20px;
}

.task-box,
.thankyou-box {
    background: white;
    padding: 50px 60px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.task-box h1 {
    font-size: 36px;
    color: #2c3e50;
    margin-bottom: 30px;
    text-align: center;
}

.task-content {
    margin: 20px 0;
}

.task-field {
    margin-bottom: 30px;
}

.task-section {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 15px;
    border-left: 4px solid #ff6b35;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.task-section:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.task-field label {
    display: block;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 12px;
    font-size: 18px;
    position: relative;
    padding-right: 40px;
}

.task-field p {
    color: #333;
    line-height: 1.8;
    font-size: 16px;
}

.task-field textarea {
    width: 100%;
    min-height: 150px;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
    line-height: 1.6;
    color: #333;
    background: white;
    resize: vertical;
    transition: border-color 0.3s ease;
}

.task-field textarea:focus {
    outline: none;
    border-color: #ff6b35;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.copy-btn {
    position: absolute;
    right: 0;
    top: 0;
    background: linear-gradient(135deg, #ff6b35 0%, #f94144 100%);
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(255, 107, 53, 0.3);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.copy-btn:hover {
    background: linear-gradient(135deg, #ff8c5a 0%, #ff6b6b 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(255, 107, 53, 0.4);
}

.copy-btn:active {
    transform: translateY(0);
}

.task-field a {
    color: #ff6b35;
    word-break: break-all;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.task-field a:hover {
    color: #f94144;
    text-decoration: underline;
}

/* Thank You Page */
.thankyou-box {
    text-align: center;
}

.success-icon {
    font-size: 80px;
    color: #2ecc71;
    margin-bottom: 20px;
}

.thankyou-box h1 {
    color: #2c3e50;
    margin-bottom: 15px;
}

.thankyou-box p {
    color: #555;
    font-size: 16px;
    margin-bottom: 10px;
}

/* Alerts */
.alert {
    padding: 15px;
    border-radius: 5px;
    margin: 15px 0;
}

.alert-info {
    background: linear-gradient(135deg, #ff6b35 0%, #f94144 100%);
    color: white;
    border-radius: 12px;
}

/* Responsive */
@media (max-width: 768px) {
    .dashboard-container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
    }

    .main-content {
        padding: 20px;
    }

    .task-form {
        padding: 20px;
    }

    .task-box {
        padding: 30px 25px;
    }

    .task-section {
        padding: 20px;
    }

    .task-field label {
        font-size: 16px;
        padding-right: 45px;
    }

    .task-field p,
    .task-field textarea {
        font-size: 14px;
    }
}

/* Horizontal Rule */
hr {
    border: none;
    border-top: 1px solid #ecf0f1;
    margin: 30px 0;
}

/* File Upload Section */
#uploadSection h2 {
    color: #2c3e50;
    font-size: 22px;
    margin-bottom: 12px;
    font-weight: 700;
}

#uploadSection p {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
}

#screenshotInput {
    display: block;
    width: 100%;
    padding: 12px;
    border: 2px dashed #ff6b35;
    border-radius: 10px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

#screenshotInput:hover {
    border-color: #f94144;
    background: #fff5f3;
}

#screenshotInput:focus {
    outline: none;
    border-color: #ff6b35;
    border-style: solid;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

#uploadPreview {
    background: white;
    padding: 10px;
    border-radius: 8px;
}

#uploadPreview img {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

#uploadError {
    margin-top: 10px;
}

/* Disabled button styling */
.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

.btn:disabled:hover {
    transform: none !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1) !important;
}
