.elementor-7492 .elementor-element.elementor-element-447b24c{--display:flex;--margin-top:20px;--margin-bottom:20px;--margin-left:0px;--margin-right:0px;--padding-top:0px;--padding-bottom:0px;--padding-left:0px;--padding-right:0px;}.elementor-7492 .elementor-element.elementor-element-8d7e68c > .elementor-widget-container{margin:0px 0px 0px 0px;padding:0px 0px 0px 0px;}.elementor-widget .tippy-tooltip .tippy-content{text-align:center;}/* Start custom CSS for html, class: .elementor-element-8d7e68c */* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }

        :root {
            --primary: #4361ee;
            --secondary: #3f37c9;
            --accent: #4cc9f0;
            --light: #f8f9fa;
            --dark: #212529;
            --success: #4CAF50;
            --warning: #ff9800;
            --danger: #f44336;
            --gray: #6c757d;
            --light-gray: #e9ecef;
            --break-color: #ffb74d;
            --time-slot-blue: #599ee3;
            --empty-slot-blue: #157fe9;
        }

        body {
            background-color: #ffffff;
            color: var(--dark);
            line-height: 1.6;
        }

        .container {
            max-width: 1400px;
            margin: 0 auto;
            padding: 20px;
        }

        header {
            text-align: center;
            margin-bottom: 30px;
            padding-bottom: 20px;
            border-bottom: 1px solid var(--light-gray);
        }

        header h1 {
            color: var(--primary);
            font-size: 2.5rem;
            margin-bottom: 10px;
        }

        header p {
            color: var(--gray);
            font-size: 1.1rem;
            max-width: 600px;
            margin: 0 auto;
        }

        .app-controls {
            display: flex;
            justify-content: space-between;
            flex-wrap: wrap;
            gap: 15px;
            margin-bottom: 25px;
            background: white;
            padding: 20px;
            border-radius: 10px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
        }

        .controls-left, .controls-right {
            display: flex;
            flex-wrap: wrap;
            gap: 15px;
            align-items: center;
        }

        .btn {
            padding: 10px 20px;
            border: none;
            border-radius: 6px;
            cursor: pointer;
            font-weight: 600;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .btn-primary {
            background-color: var(--primary);
            color: white;
        }

        /* Removed hover effect from .btn-primary */
        .btn-primary:hover {
            background-color: var(--primary); /* Same as normal state */
            transform: none; /* Removed translateY(-2px) */
        }

        .btn-success {
            background-color: var(--success);
            color: white;
        }

        .btn-warning {
            background-color: var(--warning);
            color: white;
        }

        .btn-danger {
            background-color: var(--danger);
            color: white;
        }

        .btn-light {
            background-color: var(--light-gray);
            color: var(--dark);
        }

        .btn-info {
            background-color: #17a2b8;
            color: white;
        }

        .btn-break {
            background-color: var(--break-color);
            color: white;
        }

        .btn:hover {
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        }

        .timetable-container {
            background: white;
            border-radius: 10px;
            overflow: hidden;
            box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
            margin-bottom: 30px;
            overflow-x: auto;
        }

        /* Updated timetable header - removed background and borders */
        .timetable-header {
            padding: 20px;
            text-align: center;
            border-radius: 0px; /* Changed: border-radius 0px */
        }

        .timetable-header h2 {
            font-size: 2rem;
            margin: 0;
            font-weight: 700;
            color: var(--primary);
        }

        .timetable {
            width: 100%;
            border-collapse: collapse;
            min-width: 800px;
        }

        .timetable thead {
            background-color: var(--primary);
            color: white;
        }

        .timetable th {
            padding: 18px 12px;
            text-align: center;
            font-weight: 600;
            font-size: 1.1rem;
            border: 1px solid white;
        }

        .timetable th.time-header {
            background-color: var(--secondary);
            border: 1px solid white;
        }

        .timetable tbody tr {
            border-bottom: 1px solid var(--light-gray);
            transition: background-color 0.2s;
        }

        .timetable tbody tr:hover {
            background-color: rgba(67, 97, 238, 0.03);
        }

        .timetable td {
            padding: 0;
            height: 100px;
            width: 16.66%;
            vertical-align: top;
            position: relative;
            border: 1px solid #ddd;
            border-radius: 0px;
        }

        .time-slot {
            background-color: var(--time-slot-blue);
            font-weight: 600;
            padding: 15px 10px;
            text-align: center;
            border-right: 1px solid var(--light-gray);
            color: white;
            position: relative;
        }

        .time-slot .edit-time-btn {
            position: absolute;
            top: 5px;
            right: 5px;
            background: rgba(255, 255, 255, 0.2);
            border: none;
            border-radius: 4px;
            width: 24px;
            height: 24px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            color: white;
            opacity: 0;
            transition: opacity 0.2s;
        }

        .time-slot:hover .edit-time-btn {
            opacity: 1;
        }

        .time-slot .delete-row-btn {
            position: absolute;
            bottom: 5px;
            right: 5px;
            background: rgba(255, 255, 255, 0.2);
            border: none;
            border-radius: 4px;
            width: 24px;
            height: 24px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            color: white;
            opacity: 0;
            transition: opacity 0.2s;
        }

        .time-slot:hover .delete-row-btn {
            opacity: 1;
        }

        /* Updated class slot styles */
        .class-slot {
            height: 100%;
            padding: 12px;
            margin: 0px; /* Changed: margin 0px */
            border-radius: 0px; /* Changed: border-radius 0px */
            cursor: move;
            transition: all 0.2s ease;
            position: relative;
            overflow: hidden;
            color: white;
            font-weight: 500;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        }

        /* Removed .class-slot:hover transform and box-shadow */
        .class-slot:hover {
            /* Removed: transform: translateY(-2px); */
            /* Removed: box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15); */
        }

        .class-slot .class-title {
            font-size: 0.95rem;
            margin-bottom: 5px;
            font-weight: 600;
        }

        .class-slot .class-details {
            font-size: 0.8rem;
            opacity: 0.9;
        }

        .class-slot .delete-class {
            position: absolute;
            top: 5px;
            right: 5px;
            background: rgba(0, 0, 0, 0.2);
            border-radius: 50%;
            width: 22px;
            height: 22px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            opacity: 0;
            transition: opacity 0.2s;
        }

        .class-slot:hover .delete-class {
            opacity: 1;
        }

        .empty-slot {
            height: 100%;
            padding: 12px;
            margin: 2px;
            border: 2px dashed var(--empty-slot-blue);
            border-radius: 0px;
            background-color: transparent;
            transition: all 0.2s;
            cursor: pointer; /* Added: cursor pointer */
            position: relative;
        }

        /* Added: Plus icon for empty slots */
        .empty-slot::after {
            content: '+';
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            font-size: 1.5rem;
            color: var(--empty-slot-blue);
           
            transition: opacity 0.2s;
        }

        .empty-slot:hover {
            background-color: rgba(21, 127, 233, 0.05);
            border-color: var(--primary);
        }

        .empty-slot:hover::after {
            opacity: 0.5;
        }

        /* Break time row styles */
        .break-row {
            background-color: rgba(255, 183, 77, 0.1);
        }

        .break-row:hover {
            background-color: rgba(255, 183, 77, 0.15);
        }

        .break-row .time-slot {
            background-color: rgba(255, 183, 77, 0.2);
            color: #e65100;
            font-weight: 700;
        }

        .break-slot {
            height: 100%;
            padding: 12px;
            margin: 2px;
            border-radius: 6px;
            background-color: var(--break-color);
            color: white;
            font-weight: 600;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            text-align: center;
            border: 2px solid #ff9800;
        }

        .break-slot i {
            font-size: 1.5rem;
            margin-bottom: 8px;
        }

        .break-slot .break-title {
            font-size: 1rem;
            margin-bottom: 5px;
        }

        .break-slot .break-details {
            font-size: 0.85rem;
            opacity: 0.9;
        }

        .break-slot .delete-break {
            position: absolute;
            top: 5px;
            right: 5px;
            background: rgba(0, 0, 0, 0.2);
            border-radius: 50%;
            width: 22px;
            height: 22px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            opacity: 0;
            transition: opacity 0.2s;
        }

        .break-slot:hover .delete-break {
            opacity: 1;
        }

        .modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.5);
            z-index: 1000;
            align-items: center;
            justify-content: center;
            padding: 20px; /* Added padding around modal */
            overflow: hidden; /* Prevent body scrolling when modal is open */
        }

        .modal-content {
            background-color: white;
            padding: 25px; /* Reduced padding */
            border-radius: 10px;
            width: 90%;
            max-width: 500px;
            max-height: 90vh; /* Limit height to 90% of viewport */
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
            animation: modalFadeIn 0.3s;
            overflow-y: auto; /* Allow scrolling only within modal if needed */
            display: flex;
            flex-direction: column;
            box-sizing: border-box; /* Ensure padding is included in dimensions */
        }

        @keyframes modalFadeIn {
            from { opacity: 0; transform: translateY(-20px); }
            to { opacity: 1; transform: translateY(0); }
        }

        .modal-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
            flex-shrink: 0; /* Prevent header from shrinking */
        }

        .modal-header h2 {
            color: var(--primary);
            margin: 0;
            font-size: 1.5rem; /* Slightly smaller font */
        }

        .close-modal {
            background: none;
            border: none;
            font-size: 1.8rem;
            cursor: pointer;
            color: var(--gray);
            line-height: 1;
        }

        .modal-body {
            flex: 1;
            overflow-y: auto; /* Allow scrolling within body if needed */
            min-height: 0; /* Allow shrinking */
        }

        .form-group {
            margin-bottom: 18px; /* Slightly reduced margin */
        }

        .form-group label {
            display: block;
            margin-bottom: 6px; /* Reduced margin */
            font-weight: 600;
            color: var(--dark);
            font-size: 0.95rem; /* Slightly smaller font */
        }

        .form-control {
            width: 100%;
            padding: 10px 12px; /* Reduced padding */
            border: 1px solid #ddd;
            border-radius: 6px;
            font-size: 0.95rem; /* Slightly smaller font */
            transition: border 0.3s;
            color: #000000; /* Changed: text color to #000000 */
            box-sizing: border-box; /* Ensure padding is included in width */
        }

        .form-control:focus {
            outline: none;
            border-color: var(--primary);
        }

        /* Specific form controls for Break Name, Class Name, Instructor, and Room Number */
        #breakName,
        #className,
        #instructor,
        #room {
            color: #000000 !important;
        }

        /* New time input styles */
        .time-inputs {
            display: flex;
            gap: 10px;
            align-items: center;
        }

        .timetable-time-inputs {
            display: flex;
            gap: 8px;
            align-items: center;
            width: 100%;
        }

        .timetable-time-inputs .timetable-time-part {
            flex: 1;
            padding: 10px 12px; /* Reduced padding */
            border: 1px solid #ddd;
            border-radius: 6px;
            font-size: 0.95rem; /* Slightly smaller font */
            transition: border 0.3s;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            color: #000000; /* Changed: text color to #000000 */
            box-sizing: border-box;
        }

        .timetable-time-inputs .timetable-time-part:focus {
            outline: none;
            border-color: var(--primary);
        }

        .timetable-time-inputs .timetable-ampm-select {
            width: 80px;
            padding: 10px 12px; /* Reduced padding */
            border: 1px solid #ddd;
            border-radius: 6px;
            font-size: 0.95rem; /* Slightly smaller font */
            background-color: white;
            cursor: pointer;
            transition: border 0.3s;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            color: #000000; /* Changed: text color to #000000 */
            box-sizing: border-box;
        }

        .timetable-time-inputs .timetable-ampm-select:focus {
            outline: none;
            border-color: var(--primary);
        }

        .timetable-time-inputs .time-inputs .form-control {
            flex: 1;
        }

        .color-options {
            display: flex;
            gap: 8px; /* Reduced gap */
            flex-wrap: wrap;
            margin-top: 5px; /* Added small margin */
        }

        .color-option {
            width: 28px; /* Slightly smaller */
            height: 28px; /* Slightly smaller */
            border-radius: 50%;
            cursor: pointer;
            transition: transform 0.2s;
            border: 2px solid transparent;
        }

        .color-option:hover {
            transform: scale(1.1);
        }

        .color-option.selected {
            border-color: var(--dark);
            transform: scale(1.1);
        }

        .break-type-options {
            display: flex;
            gap: 12px; /* Reduced gap */
            margin-top: 8px; /* Reduced margin */
        }

        .break-type-option {
            flex: 1;
            padding: 10px; /* Reduced padding */
            border: 2px solid var(--light-gray);
            border-radius: 6px;
            text-align: center;
            cursor: pointer;
            transition: all 0.2s;
        }

        .break-type-option:hover {
            border-color: var(--break-color);
            background-color: rgba(255, 183, 77, 0.05);
        }

        .break-type-option.selected {
            border-color: var(--break-color);
            background-color: rgba(255, 183, 77, 0.1);
        }

        .break-type-option i {
            font-size: 1.3rem; /* Slightly smaller */
            color: var(--break-color);
            margin-bottom: 6px; /* Reduced margin */
        }

        .break-type-option h4 {
            margin-bottom: 4px; /* Reduced margin */
            color: var(--dark);
            font-size: 0.95rem; /* Slightly smaller */
        }

        .break-type-option p {
            color: var(--gray);
            font-size: 0.8rem; /* Slightly smaller */
            margin: 0;
        }

        .footer-info {
            text-align: center;
            padding: 20px;
            color: var(--gray);
            font-size: 0.9rem;
            border-top: 1px solid var(--light-gray);
            margin-top: 20px;
        }

        .drag-over {
            background-color: rgba(67, 97, 238, 0.1) !important;
            border-color: var(--primary) !important;
        }

        /* Modal form button container */
        .modal-buttons {
            display: flex;
            gap: 10px;
            margin-top: 20px;
            flex-shrink: 0; /* Prevent buttons from shrinking */
        }

        .modal-buttons .btn {
            flex: 1;
            padding: 10px 15px; /* Slightly reduced padding */
            font-size: 0.95rem; /* Slightly smaller font */
        }

        /* Compact form styles for better fit */
        .compact-form .form-group {
            margin-bottom: 15px;
        }

        .compact-form .form-group:last-child {
            margin-bottom: 0;
        }

        /* Print-specific styles */
        @media print {
            body * {
                visibility: hidden;
            }
            
            .timetable-container, .timetable-container * {
                visibility: visible;
            }
            
            .timetable-container {
                position: absolute;
                left: 0;
                top: 0;
                width: 100%;
                box-shadow: none;
                border-radius: 0;
            }
            
            .app-controls, .footer-info, header, .modal {
                display: none !important;
            }
            
            .timetable {
                min-width: 100%;
            }
            
            .timetable th {
                border: 1px solid white !important;
            }
            
            .timetable td {
                border: 1px solid #ddd !important;
            }
            
            .class-slot {
                box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1) !important;
                border: none !important;
            }
            
            .break-slot {
                border: 2px solid #ff9800 !important;
            }
            
            .class-slot .delete-class,
            .break-slot .delete-break,
            .time-slot .edit-time-btn,
            .time-slot .delete-row-btn {
                display: none;
            }
            
            .empty-slot {
                border: 2px dashed var(--empty-slot-blue) !important;
            }
            
            /* Remove plus sign in print/PDF */
            .empty-slot::after {
                content: none !important;
            }
            
            .break-row {
                background-color: rgba(255, 183, 77, 0.1) !important;
            }
            
            .break-row .time-slot {
                background-color: rgba(255, 183, 77, 0.2) !important;
                color: #e65100 !important;
                font-weight: 700 !important;
            }
        }

        /* Print options modal */
        .print-options {
            display: flex;
            flex-direction: column;
            gap: 12px; /* Reduced gap */
            margin-top: 15px; /* Reduced margin */
        }

        .print-option {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 10px;
            border: 1px solid var(--light-gray);
            border-radius: 6px;
            cursor: pointer;
            transition: all 0.2s;
        }

        .print-option:hover {
            background-color: var(--light);
            border-color: var(--primary);
        }

        .print-option i {
            font-size: 1.5rem;
            color: var(--primary);
        }

        .print-option-content {
            flex: 1;
        }

        .print-option-content h4 {
            margin-bottom: 5px;
            color: var(--dark);
            font-size: 1rem; /* Slightly smaller */
        }

        .print-option-content p {
            color: var(--gray);
            font-size: 0.85rem; /* Slightly smaller */
            margin: 0;
        }

        /* Hide plus sign during PDF/Image capture */
        body.capturing .empty-slot::after {
            content: none !important;
        }

        @media (max-width: 992px) {
            .app-controls {
                flex-direction: column;
            }
            
            .controls-left, .controls-right {
                justify-content: center;
            }
            
            .timetable th, .timetable td {
                padding: 10px 5px;
            }
            
            .class-slot, .break-slot {
                padding: 8px;
            }
            
            .class-slot .class-title,
            .break-slot .break-title {
                font-size: 0.85rem;
            }
            
            .class-slot .class-details,
            .break-slot .break-details {
                font-size: 0.75rem;
            }
        }

        @media (max-width: 768px) {
            header h1 {
                font-size: 2rem;
            }
            
            .timetable-header h2 {
                font-size: 1.5rem;
            }
            
            .btn {
                padding: 8px 15px;
                font-size: 0.9rem;
            }
            
            .container {
                padding: 15px;
            }
            
            .timetable-time-inputs {
                flex-direction: column;
            }
            
            .timetable-time-inputs .timetable-ampm-select {
                width: 100%;
            }
            
            /* Smaller modals on mobile */
            .modal-content {
                padding: 20px;
                max-width: 95%;
            }
            
            .modal-header h2 {
                font-size: 1.3rem;
            }
            
            .break-type-options {
                flex-direction: column;
                gap: 8px;
            }
            
            .color-options {
                gap: 6px;
            }
            
            .color-option {
                width: 26px;
                height: 26px;
            }
        }

        @media (max-height: 700px) {
            /* Extra adjustments for shorter screens */
            .modal-content {
                padding: 20px;
                max-height: 85vh;
            }
            
            .form-group {
                margin-bottom: 15px;
            }
            
            .form-control {
                padding: 8px 10px;
            }
            
            .modal-buttons {
                margin-top: 15px;
            }
            
            .modal-buttons .btn {
                padding: 8px 12px;
            }
        }

        /* Title modal specific styles */
        .title-input-container {
            margin-bottom: 20px; /* Reduced margin */
        }
        
        .title-input-container input {
            font-size: 1.1rem; /* Slightly smaller */
            font-weight: 600;
            color: #000000; /* Changed: text color to #000000 */
        }
        
        .current-title-display {
            font-size: 1.5rem;
            color: var(--primary);
            font-weight: bold;
            margin: 0;
            padding: 10px 0;
        }
        
        .title-edit-btn {
            margin-left: 10px;
            padding: 5px 10px;
            font-size: 0.9rem;
        }/* End custom CSS */