
        /* --- Video Rotator Specific Styles --- */
        .tool-container {
            max-width: 900px;
            margin: 0 auto;
            padding: 25px;
            background-color: #fff;
            border-radius: 10px;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
            text-align: center;
        }

        .tool-container h2 {
            color: #2c3e50;
            margin-bottom: 15px;
            font-size: 2.2em;
        }

        .tool-description {
            color: #555;
            margin-bottom: 30px;
            font-size: 1.1em;
            line-height: 1.6;
        }

        .input-group {
            margin-bottom: 20px;
            text-align: left;
        }

        .input-group label {
            display: block;
            margin-bottom: 8px;
            font-weight: bold;
            color: #34495e;
            font-size: 1.05em;
        }

        input[type='file'] {
            display: block;
            width: 100%;
            padding: 10px;
            border: 1px solid #ccc;
            border-radius: 5px;
            background-color: #f9f9f9;
            font-size: 1em;
            box-sizing: border-box;
        }

        input[type='file']::file-selector-button {
            background-color: #3498db;
            color: white;
            padding: 8px 15px;
            border: none;
            border-radius: 5px;
            cursor: pointer;
            margin-right: 10px;
            transition: background-color 0.3s ease;
        }

        input[type='file']::file-selector-button:hover {
            background-color: #217dbb;
        }

        .video-preview-area {
            margin-top: 20px;
            border: 1px solid #eee;
            border-radius: 8px;
            padding: 15px;
            background-color: #fcfcfc;
            display: none; /* Hidden until video is loaded */
        }

        #originalVideo {
            max-width: 100%;
            height: auto;
            border: 1px solid #ddd;
            border-radius: 5px;
            margin-bottom: 15px;
        }

        #rotatedVideo {
            max-width: 100%;
            height: auto;
            border: 1px solid #ddd;
            border-radius: 5px;
            margin-bottom: 15px;
            display: none; /* Hidden until rotated */
        }

        .rotation-controls {
            margin-top: 20px;
            padding: 15px;
            border: 1px solid #e0e0e0;
            border-radius: 8px;
            background-color: #f0f0f0;
        }

        .rotation-controls label {
            display: block;
            margin-bottom: 10px;
            font-weight: bold;
            color: #34495e;
            font-size: 1.05em;
        }

        .rotation-controls button {
            background-color: #27ae60;
            color: white;
            padding: 10px 20px;
            border: none;
            border-radius: 5px;
            cursor: pointer;
            font-size: 1em;
            margin: 5px;
            transition: background-color 0.3s ease, transform 0.2s ease;
        }

        .rotation-controls button:hover {
            background-color: #229a55;
            transform: translateY(-2px);
        }

        .rotation-controls button:active {
            transform: translateY(0);
        }

        .tool-button {
            background-color: #3498db;
            color: white;
            padding: 12px 25px;
            border: none;
            border-radius: 5px;
            cursor: pointer;
            font-size: 1.1em;
            font-weight: bold;
            transition: background-color 0.3s ease, transform 0.2s ease;
            margin-top: 20px;
            display: inline-block;
        }

        .tool-button:hover {
            background-color: #217dbb;
            transform: translateY(-2px);
        }

        .tool-button:active {
            transform: translateY(0);
        }

        .loading-message,
        .error-message,
        .success-message {
            margin-top: 20px;
            padding: 10px;
            border-radius: 5px;
            font-weight: bold;
            display: none;
            text-align: left;
        }

        .loading-message {
            background-color: #f0f8ff;
            color: #3498db;
            border: 1px solid #aed6f1;
        }

        .error-message {
            background-color: #ffebee;
            color: #e74c3c;
            border: 1px solid #ef9a9a;
        }

        .success-message {
            background-color: #e8f5e9;
            color: #27ae60;
            border: 1px solid #a5d6a7;
        }

        .download-button {
            background-color: #3498db;
            color: white;
            padding: 10px 20px;
            border: none;
            border-radius: 5px;
            cursor: pointer;
            font-size: 1em;
            margin-top: 15px;
            transition: background-color 0.3s ease;
        }

        .download-button:hover {
            background-color: #217dbb;
        }

        /* Responsive adjustments */
        @media (max-width: 768px) {
            .tool-container {
                padding: 15px;
            }
        }
