/* Note Submission Page Styles */
:root {
    --primary-color: #0b85ce;
    --primary-dark: #0a75b5;
    --secondary-color: #f8a100;
    --secondary-dark: #e09000;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --text-color: #333;
    --text-secondary: #6c757d;
    --border-color: #e0e0e0;
    --bg-light: #f4f7f9;
    --shadow-color: rgba(0, 0, 0, 0.08);
    --transition-speed: 0.3s;
}

.darkmode {
    --text-color: #eaeaea;
    --text-secondary: #aaa;
    --border-color: #444;
    --bg-light: #252525;
    --shadow-color: rgba(0, 0, 0, 0.3);
}

/* Note Card Styles */
.note-card {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px var(--shadow-color);
    transition: all var(--transition-speed) ease;
    margin-bottom: 30px;
    background-color: var(--bg-light);
}

.darkmode .note-card {
    background-color: #1e1e1e;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.note-form-wrapper {
    padding: 20px;
}

.darkmode .note-form-wrapper {
    background-color: transparent;
}

/* New Creative Article Lead */
.article-lead-creative {
background: hsla(208, 33%, 21%, 1);

background: linear-gradient(90deg, hsla(208, 33%, 21%, 1) 0%, hsla(211, 36%, 46%, 1) 100%);

background: -moz-linear-gradient(90deg, hsla(208, 33%, 21%, 1) 0%, hsla(211, 36%, 46%, 1) 100%);

background: -webkit-linear-gradient(90deg, hsla(208, 33%, 21%, 1) 0%, hsla(211, 36%, 46%, 1) 100%);

filter: progid: DXImageTransform.Microsoft.gradient( startColorstr="#243748", endColorstr="#4B749F", GradientType=1 );
    color: white;
    padding: 25px;
    border-radius: 16px;
    margin: 20px 0;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 8px 25px rgba(11, 133, 206, 0.3);
    animation: slideInUp 0.6s ease;
    position: relative;
    overflow: hidden;
	padding-bottom: 15px;
  padding-top: 15px;
}

.lead-background-icons {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    animation: move-icons 20s linear infinite;
}

@keyframes move-icons {
    0% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0); }
}

.lead-background-icons i {
    position: absolute;
    color: rgba(255, 255, 255, 0.08);
    font-size: 3rem;
    transition: transform 0.5s ease;
}

.lead-background-icons i:nth-child(1) { top: 15%; left: 10%; transform: rotate(-15deg); animation: icon-float 5s ease-in-out infinite; }
.lead-background-icons i:nth-child(2) { top: 60%; left: 30%; transform: rotate(10deg); animation: icon-float 6s ease-in-out infinite 1s; }
.lead-background-icons i:nth-child(3) { top: 20%; right: 15%; transform: rotate(20deg); animation: icon-float 4s ease-in-out infinite 0.5s; }
.lead-background-icons i:nth-child(4) { bottom: 10%; right: 40%; transform: rotate(-5deg); animation: icon-float 7s ease-in-out infinite 1.5s; }


@keyframes icon-float {
    0%, 100% {
        transform: translateY(0) rotate(var(--initial-rotate, 0deg));
    }
    50% {
        transform: translateY(-15px) rotate(calc(var(--initial-rotate, 0deg) + 5deg));
    }
}


.article-lead-creative:hover .lead-background-icons i {
    transform: scale(1.2) rotate(0deg);
}


@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.lead-content {
    position: relative;
    z-index: 1;
}

.lead-content p {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.7;
}

.lead-content strong {
color: #fff;
  text-decoration: underline;
}




.darkmode .form-section:not(:last-child)::after {
    background-color: #444;
}



.darkmode .form-section:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Form Groups */
.form-group {
    
    position: relative;
}

.form-group:last-child {
    margin-bottom: 0;
}

/* New Floating Label Styles */
.form-field {
    position: relative;
}

.field-icon {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    color: var(--text-secondary);
    transition: color var(--transition-speed) ease;
}

.form-control {
    width: 100%;
    padding: 14px 45px 14px 15px; /* Right padding for icon */
    border: 1px solid var(--border-color);
    border-radius: 12px;
    font-size: 1rem;
    transition: all var(--transition-speed) ease;
    background-color: var(--bg-light);
    color: var(--text-color);
    font-family: Vazirmatn FD, sans-serif;
}

.darkmode .form-control {
    background-color: #333;
    border-color: #555;
    color: #eaeaea;
}

.form-label {
    position: absolute;
    top: 50%;
    right: 45px;
    transform: translateY(-50%);
    padding: 0 5px;
    background-color: transparent;
    color: var(--text-secondary);
    transition: all var(--transition-speed) ease;
    pointer-events: none;
    font-size: 1rem;
}

.form-control:focus + .form-label,
.form-control:not(:placeholder-shown) + .form-label {
    top: 0;
    font-size: 0.8rem;
    color: var(--primary-color);
    background-color: white;
}

.darkmode .form-control:focus + .form-label,
.darkmode .form-control:not(:placeholder-shown) + .form-label {
    background-color: #2d2d2d;
}


.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(11, 133, 206, 0.15);
}

.form-control:focus ~ .field-icon {
    color: var(--primary-color);
}

textarea.form-control {
    padding-top: 25px;
    min-height: 120px;
}

textarea.form-control + .form-label {
    top: 25px;
}


textarea.form-control:focus + .form-label,
textarea.form-control:not(:placeholder-shown) + .form-label {
    top: 0;
}


.form-label-static {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--text-color);
    font-size: 1rem;
}


.form-error {
    color: var(--danger-color);
    font-size: 0.85rem;
    margin-top: 8px;
    min-height: 20px;
}

/* Form Actions */
.form-actions {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.btn-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 35px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    border: none;
    font-size: 1.1rem;
    background-color: var(--success-color);
    color: white;
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.3);
}

.btn-submit:hover {
    background-color: #218838;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(40, 167, 69, 0.4);
}

.btn-submit:active {
    transform: translateY(1px);
    box-shadow: 0 3px 10px rgba(40, 167, 69, 0.3);
}

/* File Upload Styles */
.file-upload-container {
    margin-top: 15px;
}

.file-upload-area {
    display: block;
    position: relative;
    border: 2px dashed var(--border-color);
    border-radius: 16px;
    padding: 35px 20px;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    background-color: var(--bg-light);
}

.darkmode .file-upload-area {
    background-color: #2d2d2d;
    border-color: #555;
}

.file-upload-area:hover {
    border-color: var(--primary-color);
    background-color: rgba(11, 133, 206, 0.03);
}

.darkmode .file-upload-area:hover {
    background-color: rgba(11, 133, 206, 0.1);
}

.file-upload-area.dragover {
    border-color: var(--primary-color);
    background-color: rgba(11, 133, 206, 0.05);
    transform: scale(1.01);
}

.darkmode .file-upload-area.dragover {
    background-color: rgba(11, 133, 206, 0.15);
}

.file-upload-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.file-upload-message i {
    font-size: 3.5rem;
    color: var(--primary-color);
}
.darkmode .file-upload-message i {

    color: #cfcfcf;
}
.darkmode .file-icon i{

    color: #cfcfcf;
}

.file-upload-message p {
    font-size: 1.1rem;
    margin: 5px 0;
    color: var(--text-color);
    font-weight: 500;
}

.darkmode .file-upload-message p {
    color: #eaeaea;
}

.file-upload-formats {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.file-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.file-list {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 3px 10px var(--shadow-color);
    animation: slideIn 0.3s ease;
    transition: all var(--transition-speed) ease;
}

.darkmode .file-item {
    background-color: #2d2d2d;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.file-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--shadow-color);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.file-info {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.file-icon {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background-color: var(--bg-light);
}

.darkmode .file-icon {
    background-color: #252525;
}

.file-icon i {
    font-size: 1.4rem;
    color: var(--primary-color);
}

.file-details {
    flex: 1;
    overflow: hidden;
}

.file-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.darkmode .file-name {
    color: #eaeaea;
}

.file-size {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.file-actions {
    display: flex;
    gap: 5px;
}

.file-remove {
    background-color: rgba(220, 53, 69, 0.1);
    border: none;
    color: var(--danger-color);
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all var(--transition-speed) ease;
}

.file-remove:hover {
    background-color: rgba(220, 53, 69, 0.2);
    transform: scale(1.05);
}

.file-progress {
    height: 5px;
    width: 100%;
    background-color: #e9ecef;
    border-radius: 3px;
    margin-top: 8px;
    overflow: hidden;
}

.darkmode .file-progress {
    background-color: #444;
}

.file-progress-bar {
    height: 100%;
    background-color: var(--primary-color);
    border-radius: 3px;
    transition: width 0.3s ease;
}

/* Toast Notifications */
.note-toast-container {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.note-toast {
    display: flex;
    align-items: center;
    gap: 15px;
    background-color: white;
    border-radius: 16px;
    padding: 15px 20px;
    box-shadow: 0 8px 25px var(--shadow-color);
    max-width: 350px;
    transform: translateX(-100%);
    opacity: 0;
    transition: all var(--transition-speed) ease;
    border-right: 4px solid var(--primary-color);
}

.darkmode .note-toast {
    background-color: #333;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.note-toast.show {
    transform: translateX(0);
    opacity: 1;
}

.note-toast-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background-color: rgba(23, 162, 184, 0.1);
}

.darkmode .note-toast-icon {
    background-color: rgba(23, 162, 184, 0.2);
}

.note-toast-icon i {
    font-size: 1.4rem;
}

.note-toast-content {
    flex: 1;
}

.note-toast-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 5px;
}

.darkmode .note-toast-title {
    color: #eaeaea;
}

.note-toast-message {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.note-toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 0 0 0 16px;
    animation: toast-progress 3s linear;
}

@keyframes toast-progress {
    from {
        width: 100%;
    }
    to {
        width: 0%;
    }
}

/* Toast Types */
.note-toast.success {
    border-right-color: var(--success-color);
}

.note-toast.success .note-toast-icon {
    background-color: rgba(40, 167, 69, 0.1);
    color: var(--success-color);
}

.darkmode .note-toast.success .note-toast-icon {
    background-color: rgba(40, 167, 69, 0.2);
}

.note-toast.success .note-toast-progress {
    background-color: var(--success-color);
}

.note-toast.error {
    border-right-color: var(--danger-color);
}

.note-toast.error .note-toast-icon {
    background-color: rgba(220, 53, 69, 0.1);
    color: var(--danger-color);
}

.darkmode .note-toast.error .note-toast-icon {
    background-color: rgba(220, 53, 69, 0.2);
}

.note-toast.error .note-toast-progress {
    background-color: var(--danger-color);
}

.note-toast.warning {
    border-right-color: var(--warning-color);
}

.note-toast.warning .note-toast-icon {
    background-color: rgba(255, 193, 7, 0.1);
    color: var(--warning-color);
}

.darkmode .note-toast.warning .note-toast-icon {
    background-color: rgba(255, 193, 7, 0.2);
}

.note-toast.warning .note-toast-progress {
    background-color: var(--warning-color);
}

.note-toast.info {
    border-right-color: var(--info-color);
}

.note-toast.info .note-toast-icon {
    background-color: rgba(23, 162, 184, 0.1);
    color: var(--info-color);
}

.darkmode .note-toast.info .note-toast-icon {
    background-color: rgba(23, 162, 184, 0.2);
}

.note-toast.info .note-toast-progress {
    background-color: var(--info-color);
}

/* Success Modal */
.success-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-speed) ease;
}

.success-modal.active {
    opacity: 1;
    visibility: visible;
}

.success-modal-content {
    background-color: white;
    border-radius: 20px;
    padding: 40px 30px;
    width: 90%;
    max-width: 500px;
    text-align: center;
    transform: scale(0.9);
    transition: all var(--transition-speed) ease;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.darkmode .success-modal-content {
    background-color: #212121;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.success-modal.active .success-modal-content {
    transform: scale(1);
}

.success-modal-icon {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-color: rgba(40, 167, 69, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
}

.darkmode .success-modal-icon {
    background-color: rgba(40, 167, 69, 0.2);
}

.success-modal-icon i {
    font-size: 4rem;
    color: var(--success-color);
}

.success-modal-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 15px;
}

.darkmode .success-modal-title {
    color: #eaeaea;
}

.success-modal-message {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
    line-height: 1.6;
}

.success-modal-actions {
    margin-top: 25px;
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 30px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    box-shadow: 0 5px 15px rgba(11, 133, 206, 0.3);
	font-family: Vazirmatn FD, sans-serif;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(11, 133, 206, 0.4);
}

.btn-primary:active {
    transform: translateY(1px);
    box-shadow: 0 3px 10px rgba(11, 133, 206, 0.3);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 30px;
    background-color: var(--text-secondary);
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    box-shadow: 0 5px 15px rgba(108, 117, 125, 0.3);
	font-family: Vazirmatn FD, sans-serif;
}

.btn-secondary:hover {
    background-color: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(108, 117, 125, 0.4);
}

/* Responsive Styles */
@media (max-width: 768px) {
    .note-form-wrapper {
        padding: 15px;
    }
    
    
    
    .btn-submit {
        width: 100%;
    }
    
    .note-toast-container {
        left: 15px;
        right: 15px;
        bottom: 20px;
    }
    
    .note-toast {
        max-width: 100%;
    }
    
    .success-modal-content {
        padding: 30px 20px;
    }
    
    .success-modal-icon {
        width: 80px;
        height: 80px;
    }
    
    .success-modal-icon i {
        font-size: 3rem;
    }
    
    .success-modal-title {
        font-size: 1.5rem;
    }
    
    .success-modal-message {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .note-card {
        border-radius: 15px;
        margin-bottom: 20px;
    }
    
    
    
    .form-control {
        padding: 12px;
        border-radius: 10px;
    }
    
    .file-upload-area {
        padding: 25px 15px;
    }
    
    .file-upload-message i {
        font-size: 2.8rem;
    }
    
    .file-upload-message p {
        font-size: 1rem;
    }
    
    .file-item {
        padding: 12px;
    }
    
    .file-icon {
        width: 40px;
        height: 40px;
    }
}

/* Animation for file upload */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.file-upload-area.uploading {
    animation: pulse 1.5s infinite;
}

/* Ripple effect for buttons */
.btn-submit, .btn-primary {
    position: relative;
    overflow: hidden;
	font-family: Vazirmatn FD, sans-serif;
}

.btn-submit::after, .btn-primary::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
}

.btn-submit:active::after, .btn-primary:active::after {
    width: 300px;
    height: 300px;
    opacity: 1;
    transition: width 0.5s ease, height 0.5s ease, opacity 0.5s ease;
}

/* Mobile app-like styling */
@media (max-width: 576px) {
    body {
        background-color: var(--bg-light);
    }
    
    .darkmode body {
        background-color: #121212;
    }
    
    .note-card {
        border-radius: 20px;
        margin: 10px;
    }
    
    .note-form-wrapper {
        padding: 15px 10px;
    }
    
    /* Floating action button style for submit button on mobile */
    .form-actions {
        position: sticky;
        bottom: 20px;
        margin-top: 40px;
    }
    
    .btn-submit {
        box-shadow: 0 5px 20px rgba(40, 167, 69, 0.4);
    }
} 