        :root {
            --primary-color: #4361ee;
            --primary-hover: #3a56d4;
            --secondary-color: #6c757d;
            --secondary-hover: #5a6268;
            --danger-color: #dc3545;
            --danger-hover: #c82333;
            --success-color: #28a745;
            --success-hover: #218838;
            --warning-color: #fd7e14;
            --warning-hover: #e36209;
            --info-color: #17a2b8;
            --info-hover: #138496;
            --light-color: #f8f9fa;
            --dark-color: #343a40;
            --gray-light: #e9ecef;
            --gray-medium: #ced4da;
            --gray-dark: #6c757d;
            --white: #ffffff;
            --black: #000000;
            --border-radius: 0.5rem;
            --box-shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
            --box-shadow-md: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
            --box-shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);
            --transition: all 0.3s ease;
            --header-height: 70px;
            --sidebar-width: 320px;
        }

        [data-theme="dark"] {
            --primary-color: #4cc9f0;
            --primary-hover: #3aa8d8;
            --secondary-color: #adb5bd;
            --secondary-hover: #8e9aad;
            --danger-color: #ef233c;
            --danger-hover: #d90429;
            --success-color: #4ad66d;
            --success-hover: #38b000;
            --warning-color: #ff9e00;
            --warning-hover: #ff8500;
            --light-color: #212529;
            --dark-color: #f8f9fa;
            --gray-light: #343a40;
            --gray-medium: #495057;
            --gray-dark: #adb5bd;
            --white: #212529;
            --black: #f8f9fa;
        }

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

        body {
            font-family: 'Poppins', sans-serif;
            background-color: var(--light-color);
            color: var(--dark-color);
            line-height: 1.6;
            transition: var(--transition);
        }

        .container {
            width: 100%;
            max-width: 1400px;
            margin: 0 auto;
            padding: 0 1.5rem;
        }

        .app-container {
            display: flex;
            flex-direction: column;
            min-height: 100vh;
        }

        /* Header Styles */
        .app-header {
            background-color: var(--primary-color);
            color: var(--white);
            padding: 1rem 0;
            box-shadow: var(--box-shadow-sm);
            position: sticky;
            top: 0;
            z-index: 1000;
            height: var(--header-height);
        }

        .app-header .container {
            display: flex;
            justify-content: space-between;
            align-items: center;
            height: 100%;
        }

        .logo {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            text-decoration: none;
        }

        .logo-icon {
            font-size: 1.75rem;
            color: var(--white);
        }

        .logo-text {
            font-size: 1.5rem;
            font-weight: 700;
            color: var(--white);
            font-family: 'Poppins', sans-serif;
        }

        .logo-highlight {
            color: #f7b801;
        }

        .header-actions {
            display: flex;
            gap: 1rem;
            align-items: center;
        }

       #toggle-theme {
		  background: var(--dark-color);
		  color: var(--white);
		  width: 40px;
		  height: 40px;
		  border-radius: 50%;
		  display: flex;
		  align-items: center;
		  justify-content: center;
		  cursor: pointer;
		  border: none;
		  overflow: hidden;
		  padding: 0;
		  line-height: 1;
		}

		#toggle-theme i {
		  font-size: 16px;
		}

        /* Main Content */
        .app-main {
            flex: 1;
            padding: 2rem 0;
            margin-top: var(--header-height);
        }

        .app-main .container {
            display: flex;
            gap: 2rem;
        }

        /* Builder Panel */
        .builder-panel {
            flex: 0 0 var(--sidebar-width);
            background-color: var(--white);
            border-radius: var(--border-radius);
            box-shadow: var(--box-shadow-sm);
            padding: 1.5rem;
            height: fit-content;
            position: sticky;
            top: calc(var(--header-height) + 2rem);
            max-height: calc(100vh - var(--header-height) - 4rem);
            overflow-y: auto;
        }

        .panel-section {
            margin-bottom: 2rem;
            padding-bottom: 1.5rem;
            border-bottom: 1px solid var(--gray-light);
        }

        .panel-section:last-child {
            border-bottom: none;
            margin-bottom: 0;
            padding-bottom: 0;
        }

        .section-title {
            font-size: 1.125rem;
            font-weight: 600;
            margin-bottom: 1.25rem;
            color: var(--primary-color);
            display: flex;
            align-items: center;
            gap: 0.75rem;
        }

        .section-title i {
            font-size: 1.1em;
        }

        /* Template Selector */
        .template-selector {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 1rem;
            text-align: center;
            padding: 10px;
        }

        .template-option {
            cursor: pointer;
            transition: var(--transition);
            border-radius: var(--border-radius);
            overflow: hidden;
        }

        .template-option:hover {
            transform: translateY(-3px);
            box-shadow: var(--box-shadow-md);
        }

        .template-preview {
            width: 100%;
            height: 120px;
            border: 1px solid var(--gray-light);
            border-radius: var(--border-radius);
            margin-bottom: 0.5rem;
            transition: var(--transition);
            position: relative;
            overflow: hidden;
        }

        .template-option:hover .template-preview {
            border-color: var(--primary-color);
        }

        .template-option.active .template-preview {
            border-color: var(--primary-color);
            box-shadow: 0 0 0 2px var(--primary-color);
        }

        .template-name {
            display: block;
            width: 100%;
            font-size: 0.875rem;
            font-weight: 500;
            text-align: center;
            color: var(--dark-color);
            background: rgba(67, 97, 238, 0.1);
            padding: 0.5rem;
            border-radius: 0 0 var(--border-radius) var(--border-radius);
        }

        /* Template Preview Backgrounds */
        .template-preview.professional {
            background: linear-gradient(135deg, #f8f9fa 25%, #e9ecef 25%, #e9ecef 50%, #f8f9fa 50%, #f8f9fa 75%, #e9ecef 75%, #e9ecef 100%);
            background-size: 20px 20px;
        }

        .template-preview.modern {
            background: linear-gradient(135deg, #4361ee 25%, #4cc9f0 25%, #4cc9f0 50%, #4361ee 50%, #4361ee 75%, #4cc9f0 75%, #4cc9f0 100%);
            background-size: 20px 20px;
        }

        .template-preview.creative {
            background: linear-gradient(135deg, #7209b7 25%, #b5179e 25%, #b5179e 50%, #7209b7 50%, #7209b7 75%, #b5179e 75%, #b5179e 100%);
            background-size: 20px 20px;
        }

        .template-preview.executive {
            background: linear-gradient(135deg, #212529 25%, #343a40 25%, #343a40 50%, #212529 50%, #212529 75%, #343a40 75%, #343a40 100%);
            background-size: 20px 20px;
        }

        .template-preview.minimalist {
            background: linear-gradient(135deg, #ffffff 25%, #f8f9fa 25%, #f8f9fa 50%, #ffffff 50%, #ffffff 75%, #f8f9fa 75%, #f8f9fa 100%);
            background-size: 20px 20px;
            border: 1px solid var(--gray-light);
        }

        .template-preview.contemporary {
            background: linear-gradient(135deg, #2b9348 25%, #4ad66d 25%, #4ad66d 50%, #2b9348 50%, #2b9348 75%, #4ad66d 75%, #4ad66d 100%);
            background-size: 20px 20px;
        }

        .template-preview.corporate {
            background: linear-gradient(135deg, #f8f9fa 25%, #e9ecef 25%, #e9ecef 50%, #f8f9fa 50%, #f8f9fa 75%, #e9ecef 75%, #e9ecef 100%);
            background-size: 20px 20px;
        }

        .template-preview.elegant {
            background: linear-gradient(135deg, #f8f9fa 25%, #e9ecef 25%, #e9ecef 50%, #f8f9fa 50%, #f8f9fa 75%, #e9ecef 75%, #e9ecef 100%);
            background-size: 20px 20px;
        }

        /* Section Selector */
        .section-selector {
            display: flex;
            flex-direction: column;
            gap: 0.75rem;
            margin-bottom: 1.5rem;
        }

        .section-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0.75rem 1rem;
            background-color: var(--white);
            border: 1px solid var(--gray-light);
            border-radius: var(--border-radius);
            cursor: move;
            transition: var(--transition);
        }

        .section-item:hover {
            border-color: var(--primary-color);
            background-color: rgba(67, 97, 238, 0.05);
        }

        .section-item.active {
            border-color: var(--primary-color);
            background-color: rgba(67, 97, 238, 0.1);
            box-shadow: 0 0 0 1px var(--primary-color);
        }

        .section-item .section-name {
            font-weight: 500;
            font-size: 0.9375rem;
        }

        .section-item .section-actions {
            display: flex;
            gap: 0.5rem;
        }

        .section-placeholder {
            color: var(--gray-dark);
            font-style: italic;
            text-align: center;
            padding: 1rem;
            background-color: rgba(233, 236, 239, 0.5);
            border-radius: var(--border-radius);
            margin-bottom: 1rem;
        }

        /* Editor Styles */
        .editor-placeholder {
            display: flex;
            justify-content: center;
            align-items: center;
            min-height: 200px;
            color: var(--gray-dark);
            font-style: italic;
            background-color: rgba(233, 236, 239, 0.5);
            border-radius: var(--border-radius);
        }

        .editor-form {
            display: flex;
            flex-direction: column;
            gap: 1.25rem;
        }

        .form-group {
            display: flex;
            flex-direction: column;
            gap: 0.5rem;
        }

        .form-group label {
            font-weight: 500;
            color: var(--dark-color);
            font-size: 0.875rem;
        }

        .form-control {
            padding: 0.75rem 1rem;
            border: 1px solid var(--gray-light);
            border-radius: var(--border-radius);
            font-family: inherit;
            font-size: 0.9375rem;
            transition: var(--transition);
            background-color: var(--white);
            color: var(--dark-color);
        }

        .form-control:focus {
            outline: none;
            border-color: var(--primary-color);
            box-shadow: 0 0 0 0.2rem rgba(67, 97, 238, 0.25);
        }

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

        select.form-control {
            appearance: none;
            background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
            background-repeat: no-repeat;
            background-position: right 0.75rem center;
            background-size: 16px 12px;
        }

        /* Button Styles */
        .btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
            padding: 0.75rem 1.5rem;
            border: none;
            border-radius: var(--border-radius);
            font-family: inherit;
            font-size: 0.9375rem;
            font-weight: 500;
            cursor: pointer;
            transition: var(--transition);
            text-decoration: none;
        }

        .btn-sm {
            padding: 0.5rem 1rem;
            font-size: 0.875rem;
        }

        .btn-block {
            display: flex;
            width: 100%;
        }

        .btn-icon {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 2.5rem;
            height: 2.5rem;
            border-radius: 50%;
            background-color: transparent;
            color: var(--dark-color);
            cursor: pointer;
            transition: var(--transition);
        }

        .btn-icon:hover {
            background-color: rgba(0, 0, 0, 0.05);
        }

        .btn-icon i {
            font-size: 1.1em;
        }

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

        .btn-primary:hover {
            background-color: var(--primary-hover);
            transform: translateY(-2px);
            box-shadow: var(--box-shadow-sm);
        }

        .btn-secondary {
            background-color: var(--secondary-color);
            color: var(--white);
        }

        .btn-secondary:hover {
            background-color: var(--secondary-hover);
            transform: translateY(-2px);
            box-shadow: var(--box-shadow-sm);
        }

        .btn-danger {
            background-color: var(--danger-color);
            color: var(--white);
        }

        .btn-danger:hover {
            background-color: var(--danger-hover);
            transform: translateY(-2px);
            box-shadow: var(--box-shadow-sm);
        }

        .btn-success {
            background-color: var(--success-color);
            color: var(--white);
        }

        .btn-success:hover {
            background-color: var(--success-hover);
            transform: translateY(-2px);
            box-shadow: var(--box-shadow-sm);
        }

        .btn-warning {
            background-color: var(--warning-color);
            color: var(--white);
        }

        .btn-warning:hover {
            background-color: var(--warning-hover);
            transform: translateY(-2px);
            box-shadow: var(--box-shadow-sm);
        }

        .btn-info {
            background-color: var(--info-color);
            color: var(--white);
        }

        .btn-info:hover {
            background-color: var(--info-hover);
            transform: translateY(-2px);
            box-shadow: var(--box-shadow-sm);
        }

        .btn-light {
            background-color: var(--light-color);
            color: var(--dark-color);
        }

        .btn-light:hover {
            background-color: #dae0e5;
            transform: translateY(-2px);
            box-shadow: var(--box-shadow-sm);
        }

        .btn-dark {
            background-color: var(--dark-color);
            color: var(--light-color);
        }

        .btn-dark:hover {
            background-color: #23272b;
            transform: translateY(-2px);
            box-shadow: var(--box-shadow-sm);
        }

        .btn-outline-primary {
            background-color: transparent;
            border: 1px solid var(--primary-color);
            color: var(--primary-color);
        }

        .btn-outline-primary:hover {
            background-color: var(--primary-color);
            color: var(--white);
        }
		#print-resume{
		border:2px solid blue;
		}
        /* Resume Preview */
        .resume-preview {
            flex: 1;
            display: flex;
            justify-content: center;
            padding: 1.5rem;
            background-color: var(--gray-light);
            border-radius: var(--border-radius);
            box-shadow: var(--box-shadow-sm);
        }

        .resume-container {
            width: 100%;
            max-width: 800px;
            background-color: var(--white);
            box-shadow: var(--box-shadow-lg);
            min-height: 1123px; /* A4 height */
            position: relative;
            overflow: hidden;
            color: var(--black);
        }

        .resume-background-layer {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: 0;
            opacity: 0.05;
            pointer-events: none;
        }

        .resume-content {
            position: relative;
            z-index: 1;
            padding: 2.5rem;
            height: 100%;
            color: var(--black);
        }

        /* Resume Header */
        .resume-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 2rem;
            padding-bottom: 1.5rem;
            border-bottom: 2px solid var(--primary-color);
        }

        .resume-name {
            font-size: 2rem;
            font-weight: 700;
            color: var(--primary-color);
            margin-bottom: 0.25rem;
        }

        .resume-title {
            font-size: 1.25rem;
            font-weight: 500;
            color: var(--gray-dark);
        }

        .resume-contact {
            display: flex;
            flex-direction: column;
            gap: 0.5rem;
            padding: 10px;
            text-align: right;
        }

        .resume-contact-item {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            font-size: 0.9rem;
        }

        .resume-contact-item a {
            color: var(--black);
            text-decoration: none;
            transition: var(--transition);
        }

        .resume-contact-item a:hover {
            color: var(--primary-color);
            text-decoration: underline;
        }

        /* Resume Sections */
        .resume-section {
            margin-bottom: 2rem;
        }

        .resume-section-title {
            font-size: 1.25rem;
            font-weight: 600;
            color: var(--primary-color);
            margin-bottom: 1rem;
            padding-bottom: 0.5rem;
            border-bottom: 1px solid var(--gray-light);
            text-transform: uppercase;
            letter-spacing: 0.05em;
        }

        .resume-profile {
            line-height: 1.7;
            color: var(--black);
        }

        /* Resume Items */
        .resume-experience-item,
        .resume-education-item,
        .resume-project-item,
        .resume-certification-item {
            margin-bottom: 1.5rem;
        }

        .resume-item-header {
            display: flex;
            justify-content: space-between;
            margin-bottom: 0.5rem;
        }

        .resume-item-title {
            font-weight: 600;
            color: var(--black);
            font-size: 1.1rem;
        }

        .resume-item-date {
            color: var(--gray-dark);
            font-style: italic;
            font-size: 0.9rem;
        }

        .resume-item-subtitle {
            font-weight: 500;
            color: var(--gray-dark);
            margin-bottom: 0.5rem;
            font-size: 1rem;
        }

        .resume-item-description {
            line-height: 1.7;
            font-size: 0.95rem;
            color: var(--black);
        }

        .resume-item-description ul {
            padding-left: 1.5rem;
            margin-top: 0.5rem;
        }

        .resume-item-description li {
            margin-bottom: 0.25rem;
        }

        /* Skills Section */
        .resume-skills {
            display: flex;
            flex-wrap: wrap;
            gap: 0.75rem;
        }

        .skill-tag {
            background-color: var(--primary-color);
            color: var(--white);
            padding: 0.375rem 0.875rem;
            border-radius: 1rem;
            font-size: 0.875rem;
            font-weight: 500;
        }

        /* Profile Image */
        .profile-image-container {
            display: flex;
            justify-content: center;
            margin-bottom: 1.5rem;
        }

        .profile-image {
            width: 150px;
            height: 150px;
            border-radius: 50%;
            object-fit: cover;
            border: 4px solid var(--primary-color);
            cursor: pointer;
            transition: var(--transition);
            box-shadow: var(--box-shadow-sm);
        }

        .profile-image:hover {
            transform: scale(1.05);
            box-shadow: var(--box-shadow-md);
        }

        .profile-image-placeholder {
            width: 150px;
            height: 150px;
            border-radius: 50%;
            background-color: var(--gray-light);
            display: flex;
            align-items: center;
            justify-content: center;
            border: 4px dashed var(--gray-medium);
            cursor: pointer;
            transition: var(--transition);
        }

        .profile-image-placeholder:hover {
            background-color: var(--gray-medium);
            border-color: var(--primary-color);
        }

        .profile-image-placeholder i {
            font-size: 2.5rem;
            color: var(--gray-dark);
        }

        /* Two-column Layout */
        .two-column {
            display: grid;
            grid-template-columns: 1fr 2fr;
            gap: 2rem;
        }

        .sidebar {
            background-color: rgba(67, 97, 238, 0.05);
            padding: 1.5rem;
            border-radius: var(--border-radius);
        }

        /* Template Variations */
        .resume-container.professional {
            font-family: 'Poppins', sans-serif;
        }

        .resume-container.professional .resume-background-layer {
            background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100" fill="none" stroke="%234361ee" stroke-width="0.5"><rect width="100" height="100" /></svg>');
            background-size: 50px 50px;
            opacity: 0.05;
        }

        .resume-container.modern {
            font-family: 'Poppins', sans-serif;
            --primary-color: #4c49f0;
        }

        .resume-container.modern .resume-header {
            border-bottom: none;
            background-color: var(--primary-color);
            padding: 1.5rem 2.5rem;
            margin: -2.5rem -2.5rem 2rem -2.5rem;
            color: var(--white);
        }

        .resume-container.modern .resume-name,
        .resume-container.modern .resume-title,
        .resume-container.modern .resume-contact-item {
            color: #4c49f0;
            justify-content: flex-start;
            align-items: center;
        }

        .resume-container.modern .resume-contact-item a {
            color: #000;
        }

        .resume-container.modern .resume-contact-item a:hover {
            color: #e9ecef;
        }

        .resume-container.modern .resume-section-title {
            color: var(--primary-color);
            border-bottom-color: var(--gray-light);
        }

        .resume-container.modern .resume-background-layer {
            background: radial-gradient(circle at 20% 30%, rgba(76, 201, 240, 0.1) 0%, transparent 50%),
                        radial-gradient(circle at 80% 70%, rgba(76, 201, 240, 0.1) 0%, transparent 50%);
        }

        .resume-container.creative {
            font-family: 'Playfair Display', serif;
            --primary-color: #7209b7;
        }

        .resume-container.creative .resume-name {
            font-size: 2.5rem;
            font-weight: 700;
        }
        
        .resume-container.creative .resume-contact {
            color: #7209b7;
        }

        .resume-container.creative .resume-title {
            font-style: italic;
        }

        .resume-container.creative .resume-section-title {
            border-bottom: 2px solid var(--primary-color);
            font-weight: 700;
        }

        .resume-container.creative .resume-background-layer {
            background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100" fill="none" stroke="%237209b7" stroke-width="0.5"><path d="M0,0 L100,100 M100,0 L0,100" /></svg>');
            background-size: 50px 50px;
            opacity: 0.05;
        }

        .resume-container.executive {
            font-family: 'Roboto', sans-serif;
            --primary-color: #212529;
        }

        .resume-container.executive .resume-header {
            border-bottom: 2px solid var(--primary-color);
        }

        .resume-container.executive .resume-background-layer {
            background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100" fill="none" stroke="%23212529" stroke-width="0.3"><line x1="0" y1="0" x2="100" y2="0" /><line x1="0" y1="20" x2="100" y2="20" /><line x1="0" y1="40" x2="100" y2="40" /><line x1="0" y1="60" x2="100" y2="60" /><line x1="0" y1="80" x2="100" y2="80" /><line x1="0" y1="100" x2="100" y2="100" /></svg>');
            background-size: 100px 100px;
            opacity: 0.05;
        }

        .resume-container.minimalist {
            font-family: 'Poppins', sans-serif;
            --primary-color: #6c757d;
            background-color: var(--white);
            box-shadow: none;
            border: 1px solid var(--gray-light);
        }

        .resume-container.minimalist .resume-header {
            border-bottom: 1px solid var(--gray-light);
        }

        .resume-container.minimalist .resume-section-title {
            color: var(--dark-color);
            border-bottom: 1px solid var(--gray-light);
        }

        .resume-container.contemporary {
            font-family: 'Poppins', sans-serif;
            --primary-color: #2b9348;
        }

        .resume-container.contemporary .resume-background-layer {
            background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100" fill="none" stroke="%232b9348" stroke-width="0.5"><circle cx="50" cy="50" r="40" /></svg>');
            background-size: 100px 100px;
            opacity: 0.05;
        }

        /* Corporate template specific styles */
        .resume-container.corporate .resume-header {
            display: grid;
            grid-template-columns: 1fr 2fr;
            gap: 2rem;
            align-items: center;
            border-bottom: none;
            margin-bottom: 1.5rem;
        }

        .resume-container.corporate .profile-image-container {
            grid-row: span 2;
            margin-bottom: 0;
        }

        .resume-container.corporate .profile-image {
            width: 180px;
            height: 180px;
        }

        .resume-container.corporate .resume-name {
            font-size: 2.25rem;
            margin-bottom: 0.5rem;
        }

        .resume-container.corporate .resume-title {
            font-size: 1.375rem;
        }

        .resume-container.corporate .resume-contact {
            text-align: left;
            grid-column: 2;
        }

        .resume-container.corporate .resume-contact-item {
            justify-content: flex-start;
        }

        /* Elegant template specific styles */
        .resume-container.elegant .resume-header {
            flex-direction: column;
            align-items: center;
            text-align: center;
            border-bottom: 1px solid var(--primary-color);
        }

        .resume-container.elegant .resume-contact {
            text-align: center;
            width: 100%;
        }

        .resume-container.elegant .resume-contact-item {
            justify-content: center;
        }

        .resume-container.elegant .profile-image-container {
            margin-top: 1rem;
        }

        /* Contact list in 3 columns */
        .contact-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 1rem;
        }

        .contact-grid .resume-contact-item {
            justify-content: flex-start;
            font-size: 0.85rem;
        }

        /* Modal Styles */
        .modal {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.8); /* Increased opacity for better readability */
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 1000;
            opacity: 0;
            visibility: hidden;
            transition: var(--transition);
        }

        .modal.active {
            opacity: 1;
            visibility: visible;
        }

        .modal-content {
            background-color: var(--white);
            border-radius: var(--border-radius);
            box-shadow: var(--box-shadow-lg);
            width: 100%;
            max-width: 600px;
            max-height: 95vh;
            overflow-y: auto;
            transform: translateY(-20px);
            transition: var(--transition);
        }

        .modal.active .modal-content {
            transform: translateY(0);
			background:#fff;
			opacity:100%;
        }

        .modal-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 1.5rem;
            border-bottom: 1px solid var(--gray-light);
        }

        .modal-header h3 {
            font-size: 1.25rem;
            font-weight: 600;
            color: var(--dark-color);
        }

        .modal-close {
            background: none;
            border: none;
            font-size: 1.5rem;
            cursor: pointer;
            color: var(--gray-dark);
            transition: var(--transition);
        }

        .modal-close:hover {
            color: var(--danger-color);
            transform: rotate(90deg);
        }

        .modal-body {
            padding: 1.5rem;
        }

        .modal-footer {
            padding: 1rem 1.5rem;
            border-top: 1px solid var(--gray-light);
            display: flex;
            justify-content: flex-end;
            gap: 1rem;
        }

        /* Section Options */
        .section-options {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 1rem;
        }

        .section-option {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 1.5rem;
            border: 1px solid var(--gray-light);
            border-radius: var(--border-radius);
            cursor: pointer;
            transition: var(--transition);
            text-align: center;
        }

        .section-option:hover {
            border-color: var(--primary-color);
            background-color: rgba(67, 97, 238, 0.05);
            transform: translateY(-3px);
            box-shadow: var(--box-shadow-sm);
        }

        .section-option i {
            font-size: 2rem;
            margin-bottom: 0.75rem;
            color: var(--primary-color);
        }

        .section-option span {
            font-weight: 500;
        }

        /* Image Cropper Modal */
        .cropper-modal {
            max-width: 800px;
        }

        .cropper-container {
            max-height: 500px;
            margin-bottom: 1rem;
        }

        .cropper-preview {
            width: 100%;
            height: 300px;
            overflow: hidden;
            margin-bottom: 1rem;
            border: 1px solid var(--gray-light);
            border-radius: var(--border-radius);
        }

        /* Color Picker */
        .color-picker {
            display: flex;
            gap: 0.75rem;
            flex-wrap: wrap;
            margin-top: 0.5rem;
        }

        .color-option {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            cursor: pointer;
            border: 2px solid transparent;
            transition: var(--transition);
            box-shadow: var(--box-shadow-sm);
        }

        .color-option:hover {
            transform: scale(1.1);
        }

        .color-option.selected {
            border-color: var(--dark-color);
            transform: scale(1.1);
        }

        /* Notifications */
        .notification {
            position: fixed;
            bottom: 1.5rem;
            right: 1.5rem;
            padding: 1rem 1.5rem;
            border-radius: var(--border-radius);
            box-shadow: var(--box-shadow-md);
            z-index: 1000;
            transform: translateY(20px);
            opacity: 0;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            gap: 0.75rem;
        }

        .notification.show {
            transform: translateY(0);
            opacity: 1;
        }

        .notification.fade-out {
            transform: translateY(-20px);
            opacity: 0;
        }

        .notification.success {
            background-color: var(--success-color);
            color: var(--white);
        }

        .notification.error {
            background-color: var(--danger-color);
            color: var(--white);
        }

        .notification.warning {
            background-color: var(--warning-color);
            color: var(--white);
        }

        .notification i {
            font-size: 1.25rem;
        }

        /* Responsive Styles */
        @media (max-width: 1200px) {
            .app-main .container {
                flex-direction: column;
            }
            
            .builder-panel {
                flex: 1;
                position: static;
                max-height: none;
            }
            
            .resume-preview {
                order: -1;
                margin-bottom: 2rem;
            }
        }

        @media (max-width: 768px) {
            .container {
                padding: 0 1rem;
            }
            
            .app-header .container {
                flex-direction: column;
                gap: 1rem;
                height: auto;
                padding: 0.75rem 0;
            }
            
            .logo {
                flex-direction: column;
                gap: 0.5rem;
                text-align: center;
            }
            
            .header-actions {
                width: 100%;
                justify-content: center;
            }
            
            .section-options {
                grid-template-columns: 1fr;
            }
            
            .template-selector {
                grid-template-columns: 1fr 1fr;
            }
            
            .resume-container {
                padding: 1.5rem;
            }
            
            .resume-header {
                flex-direction: column;
                align-items: flex-start;
                gap: 1.5rem;
            }
            
            .resume-contact {
                text-align: left;
                width: 100%;
            }
            
            .resume-contact-item {
                justify-content: flex-start;
            }

            .two-column {
                grid-template-columns: 1fr;
            }

            .sidebar {
                order: -1;
            }

            /* Corporate template responsive */
            .resume-container.corporate .resume-header {
                grid-template-columns: 1fr;
            }

            .resume-container.corporate .profile-image-container {
                grid-row: auto;
                margin-bottom: 1.5rem;
            }

            .resume-container.corporate .resume-contact {
                grid-column: auto;
            }

            /* Elegant template responsive */
            .resume-container.elegant .resume-header {
                align-items: flex-start;
                text-align: left;
            }

            .resume-container.elegant .resume-contact {
                text-align: left;
            }

            .resume-container.elegant .resume-contact-item {
                justify-content: flex-start;
            }

            /* Contact grid responsive */
            .contact-grid {
                grid-template-columns: 1fr;
            }
        }

        .data-actions {
            display: flex;
            flex-direction: column;
            gap: 10px; /* Adjust spacing */
        }

        @media print {
            .app-header,
            .builder-panel,
            .app-footer {
                display: none !important;
            }
            
            .app-main .container {
                display: block;
            }
            
            .resume-preview {
                margin: 0;
                padding: 0;
                background-color: transparent !important;
            }
            
            .resume-container {
                box-shadow: none;
                padding: 0;
                min-height: auto;
                break-inside: avoid;
                width: 100%;
                max-width: 100%;
                margin: 0;
                page-break-after: always;
            }
            
            body {
                background-color: white !important;
                color: black !important;
                padding: 0;
                margin: 0;
            }
            
            .resume-section {
                break-inside: avoid;
            }

            .resume-background-layer {
                display: none;
            }

            .resume-contact-item a {
                color: black !important;
                text-decoration: none !important;
            }

            .resume-content {
                color: #000 !important;
            }
            .resume-item-title,
            .resume-item-description,
            .resume-profile {
                color: #000 !important;
            }

            /* Ensure proper page breaks */
            .resume-container:last-child {
                page-break-after: auto;
            }
        }

/* === Feras Customizations === */

.proresume-elite-wrapper {
    font-family: Tahoma, Arial, sans-serif;
}

.proresume-elite-wrapper .app-header,
.proresume-elite-wrapper .app-footer {
    display: none;
}

/* Direction handling */
.resume-container.ltr,
.resume-container[dir="ltr"] {
    direction: ltr;
    text-align: left;
}

.resume-container.rtl,
.resume-container[dir="rtl"] {
    direction: rtl;
    text-align: right;
}

.resume-container.rtl .section-title,
.resume-container.rtl .resume-section-title {
    text-align: right;
}

/* Template previews */
.template-preview.orange-sidebar,
.template-preview.dark-sidebar,
.template-preview.blue-diagonal,
.template-preview.blue-block,
.template-preview.black-gold {
    border-radius: 6px;
}

.template-preview.orange-sidebar {
    background: linear-gradient(to right, #f39c12 0, #f39c12 28%, #ffffff 28%, #ffffff 100%);
}

.template-preview.dark-sidebar {
    background: linear-gradient(to right, #2b2d42 0, #2b2d42 30%, #ffffff 30%, #ffffff 100%);
}

.template-preview.blue-diagonal {
    background: linear-gradient(135deg, #0b3d91 0%, #1e90ff 45%, #ffffff 45%, #ffffff 100%);
}

.template-preview.blue-block {
    background: linear-gradient(to right, #0f4c75 0, #0f4c75 35%, #ffffff 35%, #ffffff 100%);
}

.template-preview.black-gold {
    background: linear-gradient(to right, #121212 0, #121212 32%, #ffffff 32%, #ffffff 100%);
}

/* Simple accent per template */
.resume-container.orange-sidebar {
    --primary-color: #f39c12;
}

.resume-container.dark-sidebar {
    --primary-color: #2b2d42;
}

.resume-container.blue-diagonal {
    --primary-color: #1e90ff;
}

.resume-container.blue-block {
    --primary-color: #0f4c75;
}

.resume-container.black-gold {
    --primary-color: #d4af37;
}

.resume-container.orange-sidebar .resume-section-title {
    border-bottom: 2px solid #f39c12;
}

.resume-container.dark-sidebar .resume-section-title {
    border-bottom: 2px solid #2b2d42;
}

.resume-container.blue-diagonal .resume-section-title {
    border-bottom: 2px solid #1e90ff;
}

.resume-container.blue-block .resume-section-title {
    border-bottom: 2px solid #0f4c75;
}

.resume-container.black-gold .resume-section-title {
    border-bottom: 2px solid #d4af37;
}

