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

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding: 0;
    background-color: #f5f5f5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
    padding-top: 48px;
    padding-bottom: 48px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

h1 {
    text-align: center;
    color: #333;
    margin-bottom: 2.5rem;
    font-size: 2.5rem;
    font-weight: 700;
}

h2 {
    color: #444;
    margin-bottom: 1.5rem;
    font-size: 2rem;
    font-weight: 600;
}

.input-section, .parts-section, .visualization-section {
    margin-bottom: 40px;
    padding: 32px 24px;
    background-color: #f9f9f9;
    border-radius: 6px;
}

.input-group {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
    color: #666;
}

input[type="number"] {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

button {
    background-color: #4CAF50;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #45a049;
}

#cuttingCanvas {
    width: 100%;
    height: 800px;
    border: 1px solid #ddd;
    background-color: white;
}

.part-item {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    padding: 10px;
    background-color: white;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.part-item input {
    flex: 1;
}

.part-item input[type="number"].quantity {
    width: 80px;
    flex: 0 0 80px;
}

.remove-part {
    background-color: #ff4444;
    flex: 0 0 auto;
}

.remove-part:hover {
    background-color: #cc0000;
}

.canvas-container {
    position: relative;
    cursor: pointer;
    width: 100%;
    margin-bottom: 30px;
}

.dimension-label {
    position: absolute;
    font-size: 20px;
    font-weight: bold;
    color: #000;
    z-index: 10;
}

.x-label {
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
}

.y-label {
    top: 50%;
    left: -80px;
    transform: translateY(-50%) rotate(-90deg);
    transform-origin: right center;
}

.exit-message {
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    color: #666;
    font-size: 14px;
    display: none;
}

.canvas-container.fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: white;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.canvas-container.fullscreen canvas {
    max-width: 100%;
    max-height: calc(100vh - 50px);
}

.canvas-container.fullscreen .exit-message {
    display: block;
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: #666;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.8);
    padding: 5px 10px;
    border-radius: 4px;
}

.visualization-section {
    margin-bottom: 30px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 4px;
    width: 100%;
}

.footer {
    background-color: rgb(0, 142, 186);
    color: white;
    padding: 20px 0;
    text-align: center;
    position: relative;
    z-index: 10;
}
.footer-links {
    margin-bottom: 10px;
}
.footer a {
    color: white;
    text-decoration: none;
    margin: 0 10px;
}
.footer a:hover {
    text-decoration: underline;
}

/* Gumb NA VRH */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #008EBA;
    color: white;
    width: auto;
    height: 50px;
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    padding: 0 20px;
    gap: 8px;
    z-index: 1000;
}
.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}
.back-to-top i {
    font-size: 20px;
}
.back-to-top span {
    font-size: 16px;
    font-weight: 500;
}
.back-to-top:hover {
    background-color: #006b8f;
    transform: translateY(-3px);
} 

.navbarbg, .footer {
    width: 100vw;
    left: 0;
    margin-left: calc(-50vw + 50%);
    right: 0;
    position: relative;
} 

.navbar-nav li {
    padding-right: 20px;
}
.nav-link {
    font-size: 1rem;
    letter-spacing: 1px;
    text-transform: none;
    font-weight: 400;
    padding-top: 8px !important;
    padding-bottom: 8px !important;
} 