 * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Arial', sans-serif;
            line-height: 1.6;
            color: #333;
            background: #f8f9fa;
        }

        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
        }

        /* Header */
        header {
            background: white;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
            position: fixed;
            width: 100%;
            top: 0;
            z-index: 1000;
        }

        .header-top {
            background: #1e4d6b;
            padding: 8px 0;
            font-size: 14px;
            color: white;
        }

        .header-top .container {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .header-features {
            display: flex;
            gap: 30px;
        }

        .header-features span {
            display: flex;
            align-items: center;
            gap: 5px;
        }

        .header-features span:before {
            content: "✓";
            color: #28a745;
            font-weight: bold;
        }

        .login-button {
            background: #033c6b;
            color: white;
            padding: 8px 20px;
            border-radius: 20px;
            text-decoration: none;
            font-weight: bold;
            transition: all 0.3s;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .login-button:hover {
            background: #05478a;
            transform: translateY(-2px);
        }

        .login-button:before {
            content: "⛨";
        }
        

        .nav-container {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 15px 0;
        }

        .logo {
            display: flex;
            align-items: center;
            gap: 10px;
            font-size: 24px;
            font-weight: bold;
            color: #1e4d6b;
        }

        .logo-icon {
            width: 40px;
            height: 40px;
            background: #1e4d6b;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 18px;
        }

        .status-indicator {
            display: flex;
            align-items: center;
            gap: 10px;
            font-size: 14px;
        }

        .status-dot {
            width: 12px;
            height: 12px;
            background: #28a745;
            border-radius: 50%;
            animation: pulse 2s infinite;
        }

        @keyframes pulse {
            0% { transform: scale(1); opacity: 1; }
            50% { transform: scale(1.2); opacity: 0.7; }
            100% { transform: scale(1); opacity: 1; }
        }

        /* Main Content */
        main {
            padding-top: 120px;
            min-height: 100vh;
        }

        .dashboard-header {
            background-image: url('../images/boat2.jpg'); /* Default image */
            background-size: 100%;
            background-position: center;
            color: white;
            padding: 40px 0;
            text-align: center;
            border-radius: 20px;
            margin-bottom: 40px;
            animation: backgroundZoom 50s infinite; /* Animation duration */
        }

        /* Keyframe for animating background images and zooming effect */
        @keyframes backgroundZoom {
            0% {
                background-image: url('../images/boat2.jpg'); /* Image 1 */
                background-size: 100%; /* Normal size */
            }
            33% {
                background-image: url('../images/boat5.jpg'); /* Image 2 */
                background-size: 120%; /* Zoom in */
            }
            66% {
                background-image: url('../images/boat3.png'); /* Image 3 */
                background-size: 100%; /* Normal size */
            }
            100% {
                background-image: url('../images/boat5.jpg'); /* Image 1 again */
                background-size: 120%; /* Zoom in again */
            }
        }

        .dashboard-header h1 {
            font-size: 2.5rem;
            margin-bottom: 10px;
        }

        .dashboard-header p {
            font-size: 1.2rem;
            opacity: 0.9;
        }

        .dashboard-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 40px;
            margin-bottom: 40px;
        }

        .card {
            background: white;
            border-radius: 20px;
            padding: 30px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.1);
            transition: transform 0.3s;
        }

        .card:hover {
            transform: translateY(-5px);
        }

        .card h2 {
            color: #1e4d6b;
            margin-bottom: 20px;
            font-size: 1.8rem;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .card-icon {
            width: 40px;
            height: 40px;
            background: #03023f;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 18px;
        }

        /* Boat Details Card */
        .boat-details {
            grid-column: 1 / -1;
        }

        .boat-info-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 20px;
            margin-top: 20px;
        }

        .info-item {
            background: #f8f9fa;
            padding: 20px;
            border-radius: 10px;
            border-left: 4px solid #2196F3;
        }

        .info-item h3 {
            color: #1e4d6b;
            margin-bottom: 10px;
            font-size: 1.1rem;
        }

        .info-item p {
            color: #666;
            font-size: 1rem;
        }

        .validity-badge {
            display: inline-block;
            background: #28a745;
            color: white;
            padding: 5px 15px;
            border-radius: 20px;
            font-size: 0.9rem;
            font-weight: bold;
            margin-top: 10px;
        }

        .validity-badge.expired {
            background: #dc3545;
        }

        .validity-badge.warning {
            background: #f80606;
            color: #d41010;
        }

        /* Photo Gallery Section */
        .photo-gallery {
            grid-column: 1 / -1;
            margin-top: 40px;
        }

        .gallery-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
        }

        .photo-count {
            background: #e3f2fd;
            color: #1976d2;
            padding: 8px 16px;
            border-radius: 20px;
            font-size: 0.9rem;
            font-weight: bold;
        }

        .gallery-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
            gap: 15px;
            margin-bottom: 20px;
        }

        .gallery-item {
            position: relative;
            aspect-ratio: 4/3;
            border-radius: 10px;
            overflow: hidden;
            cursor: pointer;
            transition: transform 0.3s;
        }

        .gallery-item:hover {
            transform: scale(1.05);
        }

        .gallery-item img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.3s;
        }

        .gallery-item:hover img {
            transform: scale(1.1);
        }

        .gallery-item .overlay {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0,0,0,0.5);
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0;
            transition: opacity 0.3s;
        }

        .gallery-item:hover .overlay {
            opacity: 1;
        }

        .gallery-item .overlay span {
            color: white;
            font-size: 2rem;
        }

        .photo-caption {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            background: linear-gradient(transparent, rgba(0,0,0,0.8));
            color: white;
            padding: 20px 15px 15px;
            font-size: 0.9rem;
            font-weight: bold;
        }

        /* Modal for photo viewer */
        .modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0,0,0,0.9);
            z-index: 10000;
            justify-content: center;
            align-items: center;
        }

        .modal.active {
            display: flex;
        }

        .modal-content {
            position: relative;
            max-width: 90%;
            max-height: 90%;
            border-radius: 10px;
            overflow: hidden;
        }

        .modal-content img {
            width: 100%;
            height: 100%;
            object-fit: contain;
        }

        .modal-close {
            position: absolute;
            top: 20px;
            right: 20px;
            background: rgba(0,0,0,0.5);
            color: white;
            border: none;
            border-radius: 50%;
            width: 40px;
            height: 40px;
            font-size: 20px;
            cursor: pointer;
            transition: background 0.3s;
        }

        .modal-close:hover {
            background: rgba(0,0,0,0.8);
        }

        .modal-nav {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            background: rgba(0,0,0,0.5);
            color: white;
            border: none;
            border-radius: 50%;
            width: 50px;
            height: 50px;
            font-size: 24px;
            cursor: pointer;
            transition: background 0.3s;
        }

        .modal-nav:hover {
            background: rgba(0,0,0,0.8);
        }

        .modal-nav.prev {
            left: 20px;
        }

        .modal-nav.next {
            right: 20px;
        }

        .modal-info {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            background: rgba(0,0,0,0.8);
            color: white;
            padding: 20px;
            text-align: center;
        }

        .modal-info h3 {
            margin-bottom: 5px;
            font-size: 1.2rem;
        }

        .modal-info p {
            opacity: 0.9;
        }

        /* Lookup Section */
        .lookup-form {
            display: flex;
            flex-direction: column;
            gap: 15px;
        }

        .lookup-form label {
            font-size: 1.1rem;
            font-weight: 600;
            color: #1e4d6b;
        }

        .input-group {
            display: flex;
            gap: 10px;
        }

        .lookup-form input {
            flex: 1;
            padding: 15px;
            font-size: 1rem;
            border: 2px solid #e0e0e0;
            border-radius: 10px;
            transition: border-color 0.3s;
        }

        .lookup-form input:focus {
            outline: none;
            border-color: #2196F3;
        }

        .lookup-button {
            padding: 15px 30px;
            background: #2196F3;
            color: white;
            border: none;
            border-radius: 10px;
            font-size: 1rem;
            font-weight: bold;
            cursor: pointer;
            transition: background 0.3s;
        }

        .lookup-button:hover {
            background: #1976D2;
        }

        .scan-button {
            background: #28a745;
            color: white;
            padding: 15px 30px;
            border: none;
            border-radius: 10px;
            font-size: 1rem;
            font-weight: bold;
            cursor: pointer;
            transition: background 0.3s;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .scan-button:hover {
            background: #218838;
        }

        .scan-button:before {
            content: "📱";
        }

        /* Unit Details */
        .unit-details {
            background: #f8f9fa;
            border-radius: 15px;
            padding: 25px;
            margin-top: 20px;
            border: 2px solid #e0e0e0;
        }

        .unit-details h3 {
            color: #1e4d6b;
            margin-bottom: 15px;
            font-size: 1.3rem;
        }

        .unit-details p {
            margin-bottom: 10px;
            font-size: 1.1rem;
        }

        .unit-details strong {
            color: #333;
        }

        /* Quick Actions */
        .quick-actions {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 20px;
            margin-top: 30px;
        }

        .action-button {
            background: linear-gradient(45deg, #2196F3, #1976D2);
            color: white;
            padding: 15px 20px;
            border: none;
            border-radius: 10px;
            font-size: 1rem;
            font-weight: bold;
            cursor: pointer;
            transition: transform 0.3s;
            text-align: center;
        }

        .action-button:hover {
            transform: translateY(-2px);
        }

        .action-button.secondary {
            background: linear-gradient(45deg, #28a745, #20853a);
        }

        .action-button.warning {
            background: linear-gradient(45deg, #ad0a0a, #b60808);
            color: #f7f5f5;
        }

        /* Footer */
        footer {
            background: #1e4d6b;
            color: white;
            padding: 30px 0;
            text-align: center;
            margin-top: 60px;
        }

        footer p {
            margin-bottom: 10px;
        }

        footer a {
            color: white;
            text-decoration: none;
            margin: 0 10px;
        }

        footer a:hover {
            text-decoration: underline;
        }
        input::placeholder {
        color: #999; /* Lighter gray for more fade */
        opacity: 0.7; /* You can lower this for even more fading */
        }


            .logo-img {
        width: 160px; /* Adjust the width of the logo */
        height: auto; /* Adjust the height of the logo */
        }

          .status-dot {
        display: inline-block;
        width: 12px;
        height: 12px;
        border-radius: 50%;
        margin-right: 8px;
        vertical-align: middle;
        }

        .status-dot.green {
        background-color: green;
        }

        .status-dot.orange {
        background-color: orange;
        }

        .status-dot.red {
        background-color: red;
        }



        @media (max-width: 768px) {
        /* Header cleanup */
        .header-features {
            display: none;
        }

        /* Dashboard Header */
        .dashboard-header {
            padding: 30px 15px;
            background-size: cover;
        }

        .dashboard-header h1 {
            font-size: 1.8rem;
        }

        .dashboard-header p {
            font-size: 1rem;
        }

        /* Grid layout to single column */
        .dashboard-grid {
            grid-template-columns: 1fr;
        }

        /* Boat Info Grid */
        .boat-info-grid {
            grid-template-columns: 1fr;
        }

        /* Card Styling */
        .card {
            padding: 20px;
        }

        .card h2 {
            font-size: 1.4rem;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .card-icon {
            width: 32px;
            height: 32px;
            font-size: 16px;
        }

        /* Quick Actions */
        .quick-actions {
            grid-template-columns: 1fr;
            gap: 10px;
        }

        .action-button {
            font-size: 0.95rem;
            padding: 12px 15px;
        }

        .action-button.secondary,
        .action-button.warning {
            font-size: 0.9rem;
        }

        /* Gallery Section */
        .gallery-header {
            flex-direction: column;
            align-items: flex-start;
            gap: 8px;
        }

        .photo-count {
            font-size: 0.8rem;
            padding: 6px 12px;
        }

        .gallery-grid {
            grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        }

        /* Lookup Section */
        .input-group {
            flex-direction: column;
            gap: 10px;
        }

        .lookup-form input,
        .lookup-button {
            width: 100%;
        }

        .lookup-button {
            margin-top: 5px;
        }

        /* Modal Adjustments */
        .modal-content {
            max-width: 95%;
            max-height: 95%;
        }

        .modal-nav {
            width: 36px;
            height: 36px;
            font-size: 18px;
        }

        .modal-info h3 {
            font-size: 1rem;
        }

        .modal-info p {
            font-size: 0.9rem;
        }

        /* Footer */
        footer {
            font-size: 0.9rem;
        }
    }
        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }